脚本执行过程中出现过jmeter脚本不能正常退出的现象,如下报错:
... end of run
The JVM should have exited but did not.
The following non-daemon threads are still running (DestroyJavaVM is OK):
Thread[commons-pool-evictor-thread,5,main], stackTrace:sun.misc.Unsafe#park
java.util.concurrent.locks.LockSupport#parkNanos at line:215
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject#awaitNanos at line:2078
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue#take at line:1093
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue#take at line:809
java.util.concurrent.ThreadPoolExecutor#getTask at line:1074
java.util.concurrent.ThreadPoolExecutor#runWorker at line:1134
java.util.concurrent.ThreadPoolExecutor$Worker#run at line:624
java.lang.Thread#run at line:748
Thread[DestroyJavaVM,5,main], stackTrace:
解决办法:修改/usr/Jmeter/apache-jmeter-5.1.1/bin/jmeter.properties ,jmeterengine.force.system.exit=true(默认为false)
原文地址:https://www.cnblogs.com/learner34/p/10821063.html