Forking and -server flag

Aleksey Shipilev aleksey.shipilev at oracle.com
Sat Aug 9 08:30:41 UTC 2014


Hi Tom,

On 08/08/2014 10:59 PM, Deneau, Tom wrote:
> My original command line specified -server, I am using forking and I 
> noticed the forked command line does not contain -server, which on
> my configuration causes problems.

Yes, known problem with Java launcher:
 https://bugs.openjdk.java.net/browse/JDK-8025700

> Is there a way to get the forked command line to contain -server?

--jvmArgs is your friend at the command line.
.jvmArgs(...) is your friend in the API.
@Fork(jvmArgs = ...) is your friend in annotations.

-Aleksey.



More information about the jmh-dev mailing list