melix / jmh-gradle-plugin

Integrates the JMH benchmarking framework with Gradle
Apache License 2.0
666 stars 88 forks source link

benchmark can not run due to argument list too long #146

Open xiaoxuer opened 5 years ago

xiaoxuer commented 5 years ago

hi, run into this error while running the benchmark. could you please provide some help solving it, I know there is some pathing jar solution for java exec. not sure whether it can be applied here . thanks !!

JMH version: 1.19 VM version: JDK 1.8.0_40, VM 25.40-b25 VM invoker: /export/apps/jdk/JDK-1_8_0_40/jre/bin/java VM options: -Xms8192m -Xmx8192m Warmup: 3 iterations, 20 s each Measurement: 3 iterations, 200 s each Timeout: 10 min per iteration Threads: 1 thread, will synchronize iterations Benchmark mode: Average time, time/op Benchmark: Run progress: 0.00% complete, ETA 00:55:00 Fork: 1 of 5 <failed to invoke the VM, caught IOException: Cannot run program "/export/apps/jdk/JDK-1_8_0_40/jre/bin/java": error=7, Argument list too long>

jjyao commented 5 years ago

I fixed the issue by referring to #107. Basically add

jmh { jvmArgs = ['-Djmh.separateClasspathJAR=true']}