|
From: Francisco H. <fhe...@is...> - 2006-09-15 13:47:45
|
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 |