eclipselabs/passerelle

Memory leak in Ptolemy related to SharedParameter

Closed this issue · 1 comments

What steps will reproduce the problem?
======================================
1. Run a high number of models in a Passerelle execution server without 
restarting it.
(e.g. > 5000 runs )
2. Wait till all models are finished
3. Check memory consumption (e.g. Produce a heap dump)


What is the expected output? What do you see instead?
=====================================================
There should be no significant lingering state/memory consumed.

But we notice a large memory allocation (easily > 100MB) for something called 
ptolemy.moml.SharedParameter._REGISTRY


It seems to be related to the parameter ptolemy.actor.Director._timeResolution, 
a SharedParameter that is allocated for each loaded/launched model, stored in a 
static complex Map structure (_REGISTRY) and never cleaned.


Original issue reported on code.google.com by erwin...@gmail.com on 10 Sep 2012 at 9:39

Disabled/removed all references to the _REGISTRY inside SharedParameter.

Original comment by erwin...@gmail.com on 10 Sep 2012 at 11:50

  • Changed state: Fixed