执行java请求时导致在脚本执行结束时JVM无法退出-创新互联

Jmeter 执行Java 请求时,运行结束后报错,

成都创新互联从2013年创立,是专业互联网技术服务公司,拥有项目网站设计、网站建设网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元坡头做网站,已为上家服务,为坡头各地企业和个人服务,联系电话:13518219792

Tidying up remote @ Mon Feb 24 19:42:34 CST 2020 (1582544554083)
... end of run
The JVM should have exited but did not.
The following non-daemon threads are still running (DestroyJavaVM is OK):
Thread[Thread-6,5,RMI Runtime], stackTrace:freemarker.core.BuiltIn# at line:141
freemarker.core.FMParser#BuiltIn at line:1196
freemarker.core.FMParser#PrimaryExpression at line:594
freemarker.core.FMParser#UnaryExpression at line:706
freemarker.core.FMParser#MultiplicativeExpression at line:821
freemarker.core.FMParser#AdditiveExpression at line:773
freemarker.core.FMParser#RangeExpression at line:953
freemarker.core.FMParser#RelationalExpression at line:901
freemarker.core.FMParser#EqualityExpression at line:864
freemarker.core.FMParser#AndExpression at line:1020
freemarker.core.FMParser#OrExpression at line:1042
freemarker.core.FMParser#Expression at line:551
freemarker.core.FMParser#List at line:1747
freemarker.core.FMParser#FreemarkerDirective at line:3426
freemarker.core.FMParser#MixedContentElements at line:3812
freemarker.core.FMParser#Root at line:4458
freemarker.template.Template# at line:253
freemarker.cache.TemplateCache#loadTemplate at line:549
freemarker.cache.TemplateCache#getTemplateInternal at line:439
freemarker.cache.TemplateCache#getTemplate at line:292
freemarker.template.Configuration#getTemplate at line:2750
freemarker.template.Configuration#getTemplate at line:2599
org.apache.jmeter.report.dashboard.TemplateVisitor#visitFile at line:113
org.apache.jmeter.report.dashboard.TemplateVisitor#visitFile at line:49
java.nio.file.Files#walkFileTree at line:2670
java.nio.file.Files#walkFileTree at line:2742
org.apache.jmeter.report.dashboard.HtmlTemplateExporter#export at line:509
org.apache.jmeter.report.dashboard.ReportGenerator#exportData at line:381
org.apache.jmeter.report.dashboard.ReportGenerator#generate at line:262
org.apache.jmeter.JMeter$ListenToTest#generateReport at line:1324
org.apache.jmeter.JMeter$ListenToTest#run at line:1308
java.lang.Thread#run at line:748

原因:在执行java请求时会在jmeter线程之外,另外启动java线程,导致在脚本执行结束时JVM无法退出。

若要避免这种现象,需要修改jmeter.properties 中的jmeterengine.force.system.exit=true

总结

到此这篇关于执行java请求时导致在脚本执行结束时JVM无法退出的文章就介绍到这了,更多相关执行java请求JVM无法退出内容请搜索创新互联建站以前的文章或继续浏览下面的相关文章希望大家以后多多支持创新互联建站!

另外有需要云服务器可以了解下创新互联建站www.cdcxhl.com,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、建站服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网页标题:执行java请求时导致在脚本执行结束时JVM无法退出-创新互联
网页地址:http://hbruida.cn/article/hcgep.html