#287 Use -server when possible

open
nobody
None
5
2010-09-02
2010-09-02
Tobias Tobiasen
No

Hi,

I bundle the JRE with my app. On windows the JRE provided by Sun (Oracle) does not contain the server VM but the Linux distributable does include the Server VM.
I would like the launcher to add the "-server" option if the JRE includes the server VM.
The next best thing would be to add "-server" flag only on Linux (without having to sets of conf files)

Is that possible?

regards,
Tobias Tobiasen

Discussion

    • summary: Use -server possible --> Use -server when possible
     
  • I'm afraid this is currently only possible using a subset of conf files and the use of environment variables.

    for example:

    wrapper.conf
    #include ../conf/wrapper-%WRAPPER_OS%.conf

    wrapper-linux.conf
    wrapper.java.additional.1000=-server

    here's a list of the possible wrapper-specific environment variables you can use:
    http://wrapper.tanukisoftware.com/doc/english/props-envvars.html#default-definitions

    on windows the wrapper would not see wrapper-linux.conf, but try to include wrapper-windows.conf, therefore this way you could specify platform specific properties in a conf file.

    I will think about adding a different way of adding conditional properties and come back to you if I get a smart idea of how to approach that..

    cheers,
    christian