Forking and -server flag
Deneau, Tom
tom.deneau at amd.com
Wed Aug 13 15:09:18 UTC 2014
Thanks.
On a related topic, is there any support for controlling environment variables (used by native libraries) in the forked process?
-- Tom
-----Original Message-----
From: Aleksey Shipilev [mailto:aleksey.shipilev at oracle.com]
Sent: Saturday, August 09, 2014 3:31 AM
To: Deneau, Tom; jmh-dev at openjdk.java.net
Subject: Re: Forking and -server flag
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