<< memory leak with jruby on glassfish
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ActiveRDF |
New
|
Undecided
|
Unassigned |
Bug Description
We are using jruby (tried 1.1.6 and 1.3RC1) and deploying as a war on Glassfish. The use of instance_eval and instance_exec in the get_predicate method of objectmanager\
Under tests that load a lot of object from the TS but doesn't keep them, the number of loaded classes increases rapidly ( > 100,000) and never appears to plateau and very few classes ever seem to be unloaded ( < 500) also the "PS Old Gen" space of the heap eventually runs out and GC fails to clean up. Glassfish then crashes.
I replaced the use of instance_exec with two calls to instance_
So I commented out all the code used to add the << method to the object. Now the GC works great and the number of loaded classes barely rises above the fresh deployment state and plateaus. Glassfish hasn't crashed under our test since removing that code.