FaqRubyJVMArguments

How can I set JVM Arguments for the platform used by JRuby?

NetBeans 6.5 and 6.7

Go to the Ruby project's properties, Run category and edit JVM Arguments field.

Note that for Rails Project there is not the JVM Arguments field yet (see issue 146551). But you might edit the JVM Arguments by hand. Go to the Files View (Ctrl+2) navigate to nbproject directory and open project.properties and add line like:

jvm.args=-Xmx=1024m

NetBeans 6.1

No GUI support. But you can set JRUBY_EXTRA_VM_ARGS to contain parameters to pass to the JRuby VM. For example, you might set maximum Java heap size with:

export JRUBY_EXTRA_VM_ARGS=-Xmx=1024m
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo