From: Tiago Macedo Date: 2008-06-30T23:54:14+09:00 Subject: Re: rjb heap size OR call ruby methods from java -----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 Macedo Shashank Agarwal 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-----