How safe is it to use jruby.reify.classes in production #9171
Replies: 1 comment 1 reply
-
|
@gopivalleru I'll put it this way: I want it to be safe to use all of the time, but it's a bit of an open question. Class reification is pretty aggressive about generating JVM classes for all normal Object descendants (not for singleton classes or descendants of other core Ruby types). These classes are generated into their own classloaders, so that if the Ruby class goes away, the JVM class goes away... but that sometimes takes a few GC cycles to flush out. I do not know of a reason why it could not work fine in production but as it has not typically been run that way, I don't have a lot of hard data. The most likely concerns for you would be:
I suspect you are interested in this to diagnose some other problem... am I right? There's little value in enabling reification globally for most apps unless you need to use JVM tooling to inspect the heap and want to see real JVM classes rather than lots of So here's what I would suggest to you:
I am happy to answer additional questions here, but I strongly suggest you consider upgrading your app and getting expert help to diagnose any issues you're having. I guarantee you'll be a happier JRuby user as a result. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How safe is it to use jruby.reify.classes option in production. We are using jurby 9.2.8.0.
Beta Was this translation helpful? Give feedback.
All reactions