I am trying to use jmeter on the command line using:
我试图在命令行上使用jmeter使用:
./jmeter.sh -n -t testplan.jmx -l log.jtl
It works 8/10 times but some times it gets stuck on the message: waiting for possible shutdown message... I am using CentOS 6 and JMeter version 2.9 r1437961. My test plan has two thread groups which are configured to run consecutively from the GUI. Any suggestions as to what the problem might be?
它工作8/10次,但有时它会卡在消息上:等待可能的关机消息......我正在使用CentOS 6和JMeter版本2.9 r1437961。我的测试计划有两个线程组,它们被配置为从GUI连续运行。有关问题可能是什么的任何建议?
2 个解决方案
#1
Did you set timeouts to your HTTP requests ? If not , then jmeter will wait infinitely for a response from server which can lead to such issue.
您是否为HTTP请求设置了超时?如果没有,那么jmeter将无限期地等待来自服务器的响应,这可能导致这样的问题。
So fix is to set a timeout on connect and read in HTTP Request Defaults.
因此,修复是在连接上设置超时并在HTTP请求默认值中读取。
Also you shoud upgrade to JMeter 2.13.
你也应该升级到JMeter 2.13。
#2
To further breakdown UBIK LOAD PACK's comments,
为进一步细分UBIK LOAD PACK的评论,
Navigate to Testplan level and Add--> config Element --> HTTP Request Defaults.
导航到Testplan级别和Add - > config Element - > HTTP Request Defaults。
Set the protocol, server Name and port (Not sure if you really need it, but worked for me)
设置协议,服务器名称和端口(不确定是否真的需要它,但为我工作)
Navigate to advanced tab and add timeout periods(milliseconds) to Connect and response timeouts( I set as 10000)
导航到高级选项卡并为连接和响应超时添加超时时间(毫秒)(我设置为10000)