Forum: JRuby JRuby Memory Usage

Posted by gaja s.r (Guest)
on 2010-03-03 15:01
(Received via mailing list)
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
Posted by Vladimir Sizikov (Guest)
on 2010-03-03 15:09
(Received via mailing list)
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 <gaja26387@gmail.com> wrote:
> assumption correct? Is this fixed in later versions?
>
> -Gajendran
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Jay McGaffigan (Guest)
on 2010-03-03 15:14
(Received via mailing list)
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 <gaja26387@gmail.com> wrote:
> assumption correct? Is this fixed in later versions?
>
> -Gajendran
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.