[jruby-user] Re: Out of memory problem with JRuby-Complete
Cees Zeelenberg <[email protected]>
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <[email protected]> |
After some more trials, it is clear that the E_OUTOFMEMORY problem
depends on how JRuby-Complete is activated:
Calling with a programfile will cause the problem:
java -cp lib\java\jruby-complete-1.7.13.jar;(other jars) org.jruby.Main
src\jruby_bootstrap.rb
While calling it with one-line of script avoids the problem:
java -cp lib\java\jruby-complete-1.7.13.jar;(other jars) org.jruby.Main
-e "require '.\src\jruby_bootstrap.rb'"
alternatively, in stead of using org.jruby.Main (the JRuby compiler) the
Ruby program can be started with a small Java program that uses the
org.jruby.embed.ScriptingContainer class. This will also avoid the
problem.
In most cases either method will do to run your Ruby program with
JRuby-Complete. The difference is the amount of native memory available
to your program.
-Cees
--
Posted via http://www.ruby-forum.com/.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email