JRuby Memory Usage

Hi,
I am runnning a rails application using JRuby 1.2 + Apache Tomcat.
But my
application runs out of memory and throws an ‘Heap:Out of memory
exception’
after serving a few requests. The problem persists even after increasing
the
heap size only thing it gets delayed.
On profiling the memory, i found that the tenured generation / older
generation space keeps increasing and after reaching a maximum threshold
GC
runs on it but it doesnt clean up the entire space (only minimall).
Eventually it gets filled up and throws OOM exception.
So i guess JRuby holds objects for a long time without releasing it?
Is my
assumption correct? Is this fixed in later versions?

-Gajendran

Hi,

I remember a bunch of memory leak fixes in JRuby, so you’re best bet
is to try the latest JRuby version, yes.

Thanks,
–Vladimir

On Wed, Mar 3, 2010 at 3:00 PM, gaja s.r [email protected] wrote:

assumption correct? Is this fixed in later versions?

-Gajendran


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hey,

I believe this is fixed in later Jruby versions.

I ran into this same problem a while ago and I think it was in 1.2.
Working with the JRuby guys we found that there was an issue with weak
references and Charles fixed it. You should try a newer version of
JRuby.

Jay

On Wed, Mar 3, 2010 at 9:00 AM, gaja s.r [email protected] wrote:

assumption correct? Is this fixed in later versions?

-Gajendran


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email