Forum: JRuby memory leak & symbols

6845934e8c39cf3d03cc1f2188e8c7cd?d=identicon&s=25 José Antonio Silva Portell (Guest)
on 2014-02-24 12:05
(Received via mailing list)
Attachment: Selection_042.png (20 KB)
hi,

I have an app with a memory leak which i can properly fix... using tools
like Eclipse Mat and VisualVM with the -J-Djruby.reify.classes=true
aren't
help because the leak suspects are always things like "RubyClass",
"RubyMetaClass", "RubyModule"...

How can i know if the leak that my app is experiencing is related to
symbols or something else?

Is there another param that can i add to my VM to get more information
that
can heap me to find the error?

JRUBY_OPTS="-J-Xss1m -J-Xms3072m -J-Xmx3072m -J-server --1.9
-J-XX:ReservedCodeCacheSize=128m -J-javaagent:/opt/newrelic/newrelic.jar
-J-Djruby.reify.classes=true -J-XX:+CMSClassUnloadingEnabled
-J-XX:+UseConcMarkSweepGC"

Thanks,
Antonio
Caa2df9372ffa0a9e95b2bab1e8fea34?d=identicon&s=25 Karol Bucek (Guest)
on 2014-02-24 12:53
(Received via mailing list)
just ignore MAT's "leak suspects" - not completely but you need to do
your
own heap dump analysis ... looking for GC roots with the candidates.
if it's not showing up pointers to a RubySymbol instance than it's
likely
not caused by :symbol usage.

in terms of class unloading (due hot redeploys) - that's a bit different
and depends on the server and libraries used ... I would look at (JRuby
and/or web-app) class-loaders.

it's generally not that hard to analyze dumps assuming you understand
some
Java class-loading "basics" but it's hard (at least for me) to explain
not
knowing more app details.

K.


On Mon, Feb 24, 2014 at 12:03 PM, Jos Antonio Silva Portell <
6845934e8c39cf3d03cc1f2188e8c7cd?d=identicon&s=25 José Antonio Silva Portell (Guest)
on 2014-02-24 13:48
(Received via mailing list)
Thanks for the answer Karol. I'll take a look on the GC roots :)


On Mon, Feb 24, 2014 at 8:48 AM, Karol Bucek <self@kares.org> wrote:

> it's generally not that hard to analyze dumps assuming you understand some
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>


--
--
José Antonio Silva Portell
Code Artist & CTO
modyo.com

Av. Bicentenario 3883 Of. 303, Vitacura, Chile
phone: (56-2) 5871821 mobile: (56-9) 82179132
skype:  silva.portell
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.