视频地址:http://edu.51cto.com/lecturer/4626073.html
当使用jmeter 非GUI模式 对java请求进行性能测试时,在执行结束时会报错:
The JVM should have exitted but did not.
The following non-daemon threads are still running (DestroyJavaVM is OK):
如下所示:
原因:在执行java请求时会在jmeter线程之外,另外启动java线程,导致在脚本执行结束时JVM无法退出。
若要避免这种现象,需要修改jmeter.properties 中的jmeterengine.force.system.exit=true。
然后再次执行脚本,就不会报错了。
转载于:https://blog.51cto.com/xqtesting/2348822