You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
We have a Java Desktop Application which uses JavaHelp library to show Help Content.
From "Main Java Window", we launch another "JFrame Window". The later "JFrame Window" can be closed and opened several times when "Main Java Window" is still alive.
"JFrame Window" used JavaHelp and creates HelpSet etc. When we close the "JFrame Window" we call cleanup method on HelpSet and HelpBroker object and assign the object=null.
Note that we have large number of help html files. But it is observed that JavaHelp's FlatMap object is not getting released for after closing "JFrame Window" (Even after running GC). "FlatMap" has "FlatMapResourceBundle" inner class which has got "lookup" hashtable. This "lookup" hashtable is storing big chunk of memory.
I've written the sample example to re-create the issue.
Request you to follow below instructions.
Download attached sample zip file. Extract it. This has doc, lib, src directory.
Run
java -classpath .;..\lib\jhall.jar com.org.test.memory.TestJavaHelpMem "..\doc"
Now what we need
We need a API (a cleanup function) to remove the memory chunk held by FlatMap::FlatMapResourceBundle::lookup table.
Also have a look at cleanup the memory reference around it.
Environment
Windows 2003 Professional, Java Help 2_0_05, Java version "1.6.0_25"
Activity
glassfishrobot commentedon Jun 7, 2011
Reported by raghuveer.talekar
glassfishrobot commentedon Jun 7, 2011
File: JavaHelp_Memor_Leak_Posting.zip
Attached By: raghuveer.talekar
glassfishrobot commentedon Apr 26, 2017
This issue was imported from java.net JIRA JAVAHELP-32