Re: [jruby-user] Anything wrong with shelling out to jruby?

John Joseph Bachir <[email protected]> Sat, 21 Mar 2015 13:46:54 -0400
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CAOf2Z5sSe=uWysjT-ihjs1xSLBm0N-4d9fBDLvQo8zJaq0cD2g@mail.gmail.com>
I made some more observations. I did an experiment similar to my March 17
email, but this time with `ruby -e"sleep 1-"`, and then I observed my
process list to see if a new "java" was created and how much memory it took.

with JRuby.runtime.instance_config.run_ruby_in_process set to true or
false, a second java instance was always created. The outer Java instance
(running pry) took about 180 megs, and the inner about 80 megs.

Is this behavior expected? Let me know if there is more info I can provide.

John