JAVA(TM) binary has stopped working while ant converts .jmx to .jtl

混江龙づ霸主 提交于 2019-12-12 05:07:30

问题


I'm trying to generate HTML reports of jmeter files using apache ant. while running the test .jmx file tries to convert itself into .jtl file, at that time java binary has not working pop appears and build fails.

D:\softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras>ant -Dtest=RetailerPor
tal
Picked up _JAVA_OPTIONS: -Xmx256M
Buildfile: D:\softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras\build.xml
run:
     [echo] funcMode = false
   [jmeter] Executing test plan: D:\softwares\apache-jmeter-2.13\apache-jmeter-2
.13\extras\RetailerPortal.jmx ==> D:\softwares\apache-jmeter-2.13\apache-jmeter-
2.13\extras\RetailerPortal.jtl
_message_xalan:
xslt-report:
BUILD FAILED
D:\softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras\build.xml:132: input f
ile D:\softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras\RetailerPortal.jtl
 does not exist
Total time: 17 seconds

回答1:


According to the output it fails during execution of the JMeter test, most likely due to low Java Heap Size value (-Xmx256M). Check out jmeter.log file - it usually contains all the necessary information.

Add the following line to <jmeter> section of your build.xml file:

<jvmarg value="-Xmx1234M"/>

or set it via ANT_OPTS environment variable on OS level like:

set ANT_OPTS=-Xmx1234M

Replace 1234 with memory size (in megabytes) you want to make available to JMeter (I would go for 70% - 80% of your total physical RAM amount)

See 9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure guide for more JMeter tweaks, tips and tricks




回答2:


Increasing the RAM size works fine.




回答3:


Please check about Test.jtl file which is created in apacheant\bin. You might have created a new test documet and replaced its name with Test.jtl simply... Try to open it and save as it with .jtl extension... Make sure you've removed .txt.



来源:https://stackoverflow.com/questions/36028124/javatm-binary-has-stopped-working-while-ant-converts-jmx-to-jtl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!