Change java heap size in Aptana

Hi to all.

I have a strange problem concerning an Aptana and jruby and I hope that
somebody here can help :slight_smile:

I am using

  • Aptana Rad Rails (2.0.2)
  • Jruby 1.5.0.RC3
  • Rails 2.3.5
  • Windows Vista

and when I start a Testrun (about 800 Tests) this always stops because
the
java heap size is not sufficient. So what I’m trying to do is change the
maximum java heap size for the Java Virtual Machine. Therefore I found
the
parameter

-Xmx512m

and to achieve that jruby passes this parameter to the jvm one has to
use

-J-Xmx512m

Typing jruby -J-Xmx512m perfectly works in a command prompt but if I
configure the jruby interpreter in Aptana to use this parameter, there
is
always the error message that this parameter is not recognized…

I think this is a bug in Aptana / Jruby, but I’m not sure. Is there
another
way to run the tests in Aptana with more Java Heap Size??? Or does
anybody
know what else I could do to run my tests with jruby?

Cheers
Florian

View this message in context:
http://old.nabble.com/Change-java-heap-size-in-Aptana-tp28534780p28534780.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

My rough guess would be that Aptana is launching JRuby directly from
the Java class (org.jruby.Main) rather than going through our startup
script. So there must be a place in Aptana where you can specify that
when it starts up JRuby in that Java subprocess, it should pass your
Java arguments along.

Sorry we can’t be more help, but it sounds like it’s entirely in
Aptana’s court to provide a way to set the heap when launching JRuby.

On Wed, May 12, 2010 at 11:35 AM, FloMotion
[email protected] wrote:

 * Windows Vista
-J-Xmx512m
Cheers


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email