Using jmh.shutdownTimeout

Behrooz Nobakht nobeh5 at gmail.com
Fri May 22 09:04:54 UTC 2015


Hi,

A while ago, Aleksey was kind enough to introduce a parameter
into JMH to shut down the target JVM for strayed/stranded benchmarked
JVM threads.

Now my question is which one of the following is the correct way to use
this:

Inside my benchmark Main:

new OptionBuilder().jvmArgsPrepend("-Djmh.shutdownTimeout=N")

or when running the benchmark as:

java -Djmh.shutdownTimeout=N -jar uber.jar?

Thanks,
Behrooz


More information about the jmh-dev mailing list