Frieda Reichsman wrote: > Which brings to mind this question - does anyone know if there a way > to re-set Java's memory to avoid the "Java.lang out of memory error" > that results from re-loading a page with an applet many times? > In my Java console (Linux or WinXP) there appears at the top a list of key commands. One is 'g' for garbage collection. But this will only help for a few addittional reloads. My strategy is to avoid reloading pages with Jmol applets but opening them up in new windows. I do this because I expect the browser to "kill" the applet if the corresponding window gets closed (at least Firefox definitely does not do this if you reload the applet). But from a comment Bob gave on this topic on the list a while ago I fear even that isn't true.
The only definite way I know of, to free the memory of previous Jmol page loads, is to quit the browser and usually automatically the JavaVM with it. Since it is not very nice, if you have to do this every 15 minutes, I increase the maximum amount of memory the JavaVM is allowed to use. Currently I am using 256 MB as default (having 1 GB physical memory), but I already set it to 1.6 GB to be able to work (successfully) with the largest PDB file available from RCSB (biological unit 1 of '2bvi', 386 MB uncompressed file size) within my Jmol applet interface. In order to set the maximum memory size you must open the configuration dialog of your Java installation (I don't know where it is hidden on a Mac). Then there must be something like an 'Advanced Options' section where you can type in some text. If you want to set the memory size to 256MB you have to type: -Xmx256m You can exchange the '256' by any number you like, as long as it doesn't exceed the available virtual memory space. But it is better for the overall performance of your computer to choose a value for your everyday work that is sufficient below the amount of physical memory (RAM). I can usually work quite a lot before I run into the 'out of memory' problem with 256MB. But this depends of course of the size of the structures you are loading and the number of reloads you perform. Regards, Rolf ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

