Default to --server?

It would be nice if jruby defaulted to --server (at least for me, I
can’t think of when I would want it to default to client).
Thanks!
-r

For CLI scripts a JVM running --client executes much more quickly.
The warmup time of --server doubles the wall clock time of many
short-running ruby scripts. Believe me on MacOS with Java 6 they have
no -client VM anymore and it is killing me :slight_smile: When I switch to Java
5 on MacOS it is much less painful (though still painful since JVM
startup is far from fast).

This may be more realistic when we get nailgun running at production
quality since we can fire up a JVM and leave it running…

-Tom

On Mon, Nov 2, 2009 at 3:46 PM, Roger P. [email protected] wrote:

http://xircles.codehaus.org/manage_email


blog: http://blog.enebo.com twitter: tom_enebo
mail: [email protected]


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Roger,

On Mon, Nov 2, 2009 at 9:46 PM, Roger P. [email protected] wrote:

It would be nice if jruby defaulted to --server (at least for me, I
can’t think of when I would want it to default to client).

I second Tom here, we explicitly set the client VM to improve the
startup. On the other hand, those who know what they are doing, could
always invoke with --server option.

Also, JAVA_OPTS and JRUBY_OPTS were supposed to help with setting up
the default modes/options, but it looks like they not fully work on
non-Windows and totally not (yet) implemented on Windows. Take a look
here:

In theory, once this is implemented, you could set those env variables
and have the default mode as you wish.

Thanks for reporting this, and keep your bugs coming :slight_smile:

Thanks,
–Vladimir


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Tue, Nov 3, 2009 at 7:46 AM, Roger P. [email protected] wrote:

(at least for me, I can’t think of when I would want it to default to client).

Says a guy who only ever writes server software?

Personally, I can’t think of a case where I would want to run the server
VM. :slight_smile:

TX


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

So, this only emphasizes the point that these things need to
configurable and it would be great to have them defined once in the
environment and not to use command line switches every time. :slight_smile:

Thanks,
–Vladimir

On Tue, Nov 3, 2009 at 5:59 AM, Trejkaz [email protected] wrote:

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi folks,

Just to inform you that Nick has just implemented the handling of
JAVA_OPTS and JRUBY_OPTS in JRuby’s native launcher for Windows, and
it is available on master branch already.

So, for those who wish to have server VM by default, just set JAVA_OPTS:
set JAVA_OPTS=-server

And jruby -v will return:
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2009-11-03 bd17c15) (Java
HotSpot™ Server VM 1.6.0_14) [x86-java]

Thanks,
–Vladimir

On Tue, Nov 3, 2009 at 2:03 PM, Vladimir S. [email protected]
wrote:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email