|
From: N. L. <nl...@rs...> - 2006-09-15 13:56:00
|
Dear Fransisco, memory leaks are notoriously hard to identify. What usually works for me is to use an object scanner, which identifies the number and types of active objects. A free one is available at http://jb2works.com/refscan/start.html >From my experience, these bugs are often due to: - unremoved event listener connections - unexpected connections via GUI objects (e.g. via 'Action' objects in the menu, or non garbage collected windows) Hope this helps. Kind regards, Niels Lang --------------------------------------------------------- ir. Niels Lang, Ph.D. candidate Dep. Decision & Information Sciences Rotterdam School of Management Erasmus University Rotterdam =20 A: Room T09-36 Burg. Oudlaan 50 P.O. Box 1738 3000 DR Rotterdam T: +31(0)104081567 F: +31(0)104089010 E: mailto:nl...@rs... --------------------------------------------------------- =20 -----Original Message----- From: dso...@li... [mailto:dso...@li...] On Behalf Of Francisco Hederra Sent: 15 September 2006 14:48 To: dso...@li... Subject: [Dsol-java] Heap Memory Problem Hi Everyone, I am having problems with Heap Memory when I run a long number of replications (> 500). I know this is a problem between my model and the java garbage collector (gc). I have tried: a) Using finalize methods to check whther objects were cleaned, but I removed them since the gc() postpone cleaning up objects with finalizing methods. b) On every class I made every possible field final and every possible method parameter final as well c) At the end of every replication I removed all listening objects from their EventProducer. I also make null every field that is not final. After all this done, my model still uses more and more memory after each replication up to the point where there is no more Heap Memoryy available and stops. Anybody has a tip on how to expedite memory collection or issues that might reduce the change in allocated memory after each replication ? Francisco ------------------------------------------------------------------------ - 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Dsol-java mailing list Dso...@li... https://lists.sourceforge.net/lists/listinfo/dsol-java |