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).

···

--
Posted via http://www.ruby-forum.com/.

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

Datum: Mon, 30 Jun 2008 01:58:13 +0900
Von: Shashank Agarwal <shashank_hi@yahoo.com>
An: ruby-talk@ruby-lang.org
Betreff: 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).
--
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

···

--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: GMX Handytarife 2024 | jetzt wechseln & sparen

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).