I already had problems with memory deallocation with JavaScript.
In my situation, it was probably related to circular references with a non-JavaScript object in the circular reference.
Then, JavaScript garbage collector doesn't work correctly.
You usually have to dereference yourself the objects when you don't need them anymore (using null, delete, ..)

I don't remember how it is actually called, but I found some documentation on the web some time ago

Nico

Bob Hanson wrote:
OK, that makes sense. This is tricky. We may be up against a wall here.

Bob


Miguel wrote:

I'm worried that Jmol or Java is not properly dealing with memory
allocation, specifically DEallocating memory after large molecules are
replaced by small ones. What am I missing here?


Java does not have any memory leakage problems.

Jmol might ... but only if you can reproduce it in the Jmol application.

Memory never gets returned to the OS. So, from the perspective of the OS
it is a one-way valve.

You need other tools to determine how much memory is available in the Java
heap.

LiveConnect surely complicates things considerably.

Speculation ... If you reference Java objects from JavaScript then they
might never release that reference. That is, the LiveConnect *might* hold
onto the reference as long as you are on a page (or forever) because it
might not be tied in with the JavaScript garbage collector and therefore
the easiest solution would be to make the references 'permanent'.


Miguel



-------------------------------------------------------
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_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers




-------------------------------------------------------
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-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to