Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
rjb heap size OR call ruby methods from java
Shashank Agarwal
6/29/2008 4:58:00 PM
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-...
.
2 Answers
Axel Etzold
6/29/2008 6:14:00 PM
0
-------- 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-...
.
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+I...
Best regards,
Axel
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN:
http://www.gmx.net/de/go/s...
Tiago Macedo
6/30/2008 2:54:00 PM
0
-----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....
iEYEARECAAYFAkho9BMACgkQxFuRTtCTMvIvcwCfUiWhnnPfs97+6U5z+I8C7Zee
7ioAoIMgkyNBIPg84eoi4NuEvUYQ3Ahx
=jxuX
-----END PGP SIGNATURE-----
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
rjb heap size OR call ruby methods from java
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password