Chris Kutler | 16 Jul 00:03
Favicon

Re: 6.5 Ruby Project Question,


Martin Krauskopf wrote:
> Chris Kutler wrote:
>> http://wiki.netbeans.org/NewAndNoteWorthy for 6.5 says
>>
>> Ruby
>> Projects
>>   possibility to pass JVM options to the JRuby (e.g. 
>> -Djruby.objectspace.enabled=true)
>>
>> Where and how do I do this.
>
> I wrote you in private email few days ago. Likely missed in that long 
> discussion:
>
> "In the project's properties, Run category, you might set props as 
> listed by ``jruby --properties''."
I think my poor feeble mind is not able to absorb all the answers to the 
myriad number of questions I have been asking lately. But thanks for 
answering it again.
>
>>
>> Let's say that I want to pass -J-Xmx1024m to JRuby. Where do I do this?
>
> It is JVM option. You supposed to pass there JRuby properties as 
> listed by ``jruby --properties''.
>
> You might set Java options by tweaking JRUBY_EXTRA_VM_ARGS.
>
>   http://wiki.netbeans.org/FaqHowToCallJavaFromRuby \
good to know
>
> Likely something which should be doable from GUI. But no such RFE was 
> filed so far.
Now that JRuby fixed the memory problem with gems, it might not be 
necessary. I just need to do that for an older version of JRuby.
>
>> Can you give me a few examples of passing JVM options to JRuby?
>
> When you run `jruby --properties'' you will see a some examples. It's 
> not something used often by regular users, rather when one wants to 
> tune the behavior of JRuby runtime.
Thanks.
>
>     m.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>

Gmane