Jmeter 非UI界面jmx脚本不能正常退出

Posted learner34

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jmeter 非UI界面jmx脚本不能正常退出相关的知识,希望对你有一定的参考价值。

脚本执行过程中出现过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)

以上是关于Jmeter 非UI界面jmx脚本不能正常退出的主要内容,如果未能解决你的问题,请参考以下文章

使用非GUI模式运行jmeter测试脚本

Jmeter学习笔记TWO

jmeter自动生成测试报告

jmeter脚本文件(jmx)关联

关于jmeter命令行执行.jmx文件出现Error in NonGUIDriver java.lang.RuntimeException: Could not find the TestPlan c

在linux上使用jmeter