Rjb heap size OR call ruby methods from java

I’ve been using rjb (ruby java bridge) to use a method from a Java
library. Problem is, that I run out of heap while running that method.
I’m on a Windows machine, and I increased the max heap size for Java
from the Control Panel, but the problem continued. Is there a way to fix
that?

If not, is it possible to call Ruby methods from Java, something like
Inline? Xruby might help, but I wonder if it could help (never used it,
and the currently reported problems put me off).

-------- Original-Nachricht --------

Datum: Mon, 30 Jun 2008 01:58:13 +0900
Von: Shashank A. [email protected]
An: [email protected]
Betreff: rjb heap size OR call ruby methods from java

Posted via http://www.ruby-forum.com/.
There is also jruby … a Java implementation of the entire (or almost)
Ruby language – with this information on Java integration:

http://jruby.codehaus.org/Java+Integration

Best regards,

Axel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I believe that when you load the jvm, you can pass along the max heap
size as a parameter:

Rjb::load(classpath = ‘.’, jvmargs=[])

I haven’t used it myself but they should be similar to the command line
arguments:

  • -Xms32m -Xmx128m

(these are the defaults which you should increase)

Tiago M.

Shashank A. wrote:
| I’ve been using rjb (ruby java bridge) to use a method from a Java
| library. Problem is, that I run out of heap while running that method.
| I’m on a Windows machine, and I increased the max heap size for Java
| from the Control Panel, but the problem continued. Is there a way to fix
| that?
|
| If not, is it possible to call Ruby methods from Java, something like
| Inline? Xruby might help, but I wonder if it could help (never used it,
| and the currently reported problems put me off).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkho9BMACgkQxFuRTtCTMvIvcwCfUiWhnnPfs97+6U5z+I8C7Zee
7ioAoIMgkyNBIPg84eoi4NuEvUYQ3Ahx
=jxuX
-----END PGP SIGNATURE-----