Eric Martz wrote:

>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) 
>
can you be more specific about what you mean by "as one proceeds through 
the series of molecular views"?

I think one need look no further than the multiple loading of

http://www.bioinformatics.org/jmol-tutorials/jtat/jtatdemo/ch_view2/chapter.htm


my observation using Firefox/XP is that multiple loadings of that file 
cause huge jumps in memory usage. I think if you can prevent it on that 
page you will have found your solution.

Ideas:

1) If I disable drag2rotate_bb.spt and polling (var disablePolling = 
true in config2.js) I don't have the problem on a local version of your 
page. Memory climbs to 31-32 Mb and stays there upon repeated loading.

2) If I enable polling and drag2rotate_bb.spt, and load repeatedly, I 
can crash Firefox.

3) If I diable polling but enable drag2rotate_bb.spt, I can also crash 
Firefox

So try disabling the polling and drag2rotate_bb.spt and see if that 
takes care of at least some of the problem. I suspect what is happening 
is that threads are not closing properly when a page is closed. There 
may be something we can do about that; I don't know.


>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.
>
>  
>
      if (name.equals("_memory")) {
        Runtime runtime = Runtime.getRuntime();
        float bTotal = runtime.totalMemory() / 1000000f;
        float bFree = runtime.freeMemory() / 1000000f;
        String value = TextFormat.formatDecimal(bTotal - bFree, 1) + "/"
            + TextFormat.formatDecimal(bTotal, 1);
        htParameterValues.put("_memory", value);
      }

First is used (total-free); second is total. There is some rounding 
going on.

>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
>  
>


-- 
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

Reply via email to