Timothy Driscoll wrote: > On Dec 13, 2007, at 6:28 AM, Rolf Huehne wrote: >> Because an "OUT OF MEMORY" error freezes Jmol and the standard user >> most >> likely won't take a look at the Java console it would be really >> good to >> be able to warn the user at least. >> Since memory requirements and availability differ largely between >> users >> I would prefer a solution that would orient at the individual >> configurations and files loaded. >> > > as a simple kludge, you could use a server-side filter to check the > pdb file size before loading it into Jmol. then give the user an > alert if the file size exceeds the standard java memory allocation. > this would cover the majority of users, I think. (an option for > expert users would be to set a cookie indicating their java > allocation, and thus avoid the dialog. if you know how to query for > that info directly, you could make this more sophisticated.) > > just a thought. > > > tim
The problem with this is that there is no "standard java memory allocation". In my experience it differs largely between operating systems and also between Java versions. Another problem is that even if you could apply some rule of thumb (e.g.: 20 times uncompressed file size + minimum requirement for the applet) this would only apply if a single applet was started. But I would rather expect that often a user will explore several structures one after the other. And unfortunately the memory of applets whose window/tab was closed it not always released. Another problem is the applet size. Since the user can set the size freely this might also drastically change the memory required. So I would really prefer a more situation-specific solution. 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

