Eric, I found the memory leak. I think I have something for you to try. It turns out that some browsers are not disposing of the buffers used in creating the image when the page is closed and the applet is destroyed. These are major memory sinks, particularly when using antialiasing and translucency, as you are doing. In addition, it appears that if a thread is in a "sleep" mode when the page is refreshed (as when a "delay" script command has been given), it can be lost and, again, not disposed of properly. So I have added explicit commands in Jmol to destroy these objects. Your pages in particular make much use of both of these, so that is why you found this issue first.
When I implement my changes with your ch_view2 page locally I see memory at about 16-20 Mb used no matter how many times I reload. No issue with memory increase. Prior to this I was seeing memory climbing to 32, 45, 57, 60 Mb. When I look at View 2, with the isosurface, the memory usage jumps to about 32 Mb and stays there upon multiple reloads. That is exactly what I like to see -- Jmol has now pulled in the optional code for isosurfaces, and so we see a sustained increase in memory use. About polling: As you know, I experimented with this a lot about a year ago. I suggest not doing polling EVER. There are many reports of polling of applets causing Firefox to behave badly. This appears to be a very difficult problem for them, because it has been an open bug for over a year now, I think, and reports continue to come in, but it hasn't been fixed. The syncCallback should be all you need. You will have to adjust your pages with multiple applets to properly turn sync on and off if you want zoom sliders on those pages. (You would not turn the sync off, just trap the !moveto message, set the slider, and return "" to indicate to Jmol to not pass that message on to the other applets.) The update can be found now at http://chemapps.stolaf.edu/jmol/docs/examples-11/Jmol-11_5.zip Please give it a try. Bob Rolf Huehne wrote: >Eric Martz wrote: > > >>I have also created some simple test pages in an attempt to discover >>why my JTAT Demo Tutorial (http://bioinformatics.org/jmol-tutorials) >>gradually uses up all java memory (as one proceeds through the series >>of molecular views) leading to failure to display a molecule, or a >>browser crash (sudden disappearance). JTAT has these memory problems >> >> > >I tried some of your demo tutorial pages (e.g.: >http://www.bioinformatics.org/jmol-tutorials/jtat/jtatdemo/ch_comp/chapter.htm) >with Firefox 2.0.0.10 on Linux and noticed the following: > >1) Synchronization didn't work at all. > >2) The zoom slider is not refreshed if the zoom is changed with the mouse. > >Regards, >Rolf > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2008. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >Jmol-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jmol-users > > -- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

