Craig T Martin wrote: > While we're talking memory allocation, and with respect to: > > "And unfortunately the memory of applets whose window/tab was closed it > not always release " > > For the stuff that I'm doing, I've known for some time that after > loading (and closing) various windows, Jmol eventually stops working > (Jmol, not the browser, hangs on a subsequent load) and I have to > restart the browser. This on a Mac running either Safari or FireFox > (latest everything, but it's been happening for more than a year). If I > look at the memory allocated to Safari, for example, I can see a step > increase on every new Jmol applet. So it is clearly not releasing memory. > > I think I've seen this discussed here before, but with no real answer. > Is there a way to insure that when an applet closes, it releases its > memory? Or is there a way to manually do so? Is this just a problem for > me or do others see this? Perhaps I'm doing some sort of call wrong? > > An implementation is at: > <http://www.chem.umass.edu/people/cmartin/Jmol/WingedHelixII> > > You need to open and close maybe a half dozen times to see the effect. >
I experimented a bit with loading Craig's example either sequentially or in parallel before closing it. And while doing this I noticed that I was mistaken about the meaning of the total amount of memory: I thought it was the total memory used but appearently it is the total amount of memory allocated currently to the whole JavaVM. I believe this because the total amount increased from 18 MB up to 70 MB after sequential/parallel loading and closing (even if a single applet was left over). After requesting a garbage collection it dropped to 64 MB and eventually to 53 MB after clicking onto the reload button of the browser. But strangely the amount of resident memory displayed for the JavaVM in the process list (Linux "top" command) never dropped down to a lower value. But I didn't observe an increase in memory requirement for the browser (Firefox 2.0.0.10, OpenSuSE 10.2, Java 1.4_2_16) even after a dozen sequential load and close processes. Regards, Rolf ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

