At 2/1/08, Bob wrote: >The page http://www.stolaf.edu/people/hansonr/jmol/test/new/simple4.htm >allows testing of two browser issues: > >1) Reloading Jmol into a DIV using div.innerHTML = ... > >My observations: I see no problems on Firefox/Windows, MSIE/Windows, >Firefox/Mac, Safari/Mac. All create new browsers, and memory is not >increased. However, Opera/Win loses its liveConnect capability after >replacing an applet in a div this way. > >2) Using jmolScriptWait() > >My observations: Firefox/Windows, MSIE/Windows, Safari/Mac, Opera/Win >all work fine; Firefox/Mac freezes and must be shut down with >Control-Option-Escape. > >Bob
Dear Bob, Thanks for the above info! I am trying to support Firefox (FF), Safari, and Internet Explore (IE). I am not trying to support Opera. 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 in Firefox (Win or Mac). The problem in Safari is quite annoying but less severe, in that once the molecule fails to appear, a simple reload usually enables you to proceed. In Safari, one may need two or three such reloads if you go through the Demo Tutorial twice. Reloads don't cause FF to recover. (With FF, only quitting to quit java, and restarting, clear java memory.) Internet Explorer 7 does NOT have any memory problem with the JTAT Demo. IE6 has little or no problem. JTAT polls Jmol once per second with "show zoom" (so its zoom slider can follow mouse-directed zooms). This does not seem to cause a problem in any of the above 3 browsers (FF, Safari, IE). It does not affect the memory climb. Polling can be turned off with a one-line command which is messaged to the console every second as part of the polling cycle (javascript disablePolling = true). Polling fails to start in Mac FF for reasons I have not investigated. 1. MEMORY CLIMB REMAINS UNEXPLAINED. I confirm that NONE of the below cause memory use to climb in simple test pages: a. repeatedly writing new Jmols into a division (via innerHTML =) b. repeatedly reloading an HTML file containing one jmol c. alternately loading two large PDB files My tests: http://bioinformatics.org/jmol-tutorials/java-memory Thus, I don't understand why JTAT suffers from memory climb and failure. (See further info at the above URL.) I plan to continue testing and head scratching. 2. DOUBLE ZAPPING. Surprisingly, the above tests reveal that two consecutive zaps clears memory down to about 10 megs, while one zap has little effect, or occasionally even increases total memory reported as in use. Perhaps this raises a question about whether "zap" is being done correctly within Jmol? Or perhaps it is a reporting artifact? In JTAT, I did try zapping before loading a different molecule, or before writing new Jmol's into the division, but that actually made the memory problem worse. I have not yet tried double zapping. 3. DISCREPANT MEMORY REPORTS. Jmol's menu, About Jmol, reports "total", "free", and "maximum" memory. Failure to display the molecule occurs when total approaches maximum. The above tests report directly onto the page jmolEvaluate("_memory") by writing the returned string into a span. This reports two values delimited by a slash. I cannot guess what the first _memory value represents. It seems to have no correlation with "free" reported on the About Jmol menu. The second _memory value correlates well with "total" reported on the About Jmol menu. It is usually a few Mb above the menu value, but sometimes a few below. -Eric ------------------------------------------------------------------------- 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

