Using jmh.shutdownTimeout

Aleksey Shipilev aleksey.shipilev at oracle.com
Fri May 22 09:10:25 UTC 2015


On 22.05.2015 12:04, Behrooz Nobakht wrote:
> 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?

Both are correct, depending on whether you are using an API launcher, or
a CLI launcher.

Thanks,
-Aleksey




More information about the jmh-dev mailing list