8
votes

I am trying to use jmeter on the command line using:

./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?

3
Have you looked in Jmeter logs? The answer can be there.Viktor Malyi
Adding to that, JMeter doesn't necessarily output anything after the waiting for possibleshutdown message.... It usually only outputs once every 30-60 seconds or so.mhlz
Did you find the solution to this issue? I'm having the same problem in Linux only. It's all good in windowsxbmono
It's just bad UX design. By the time you notice the message, the indicated "waiting" phase has most likely already completed (unfortunately, with no immediate indication). If nothing else is being displayed, it is probably stuck on something it hasn't bothered to tell you about. I would recommend running without -n (to use the GUI mode), but that doesn't seem to be any more informative (as of version 4.0). As noted in the answers, the problem is most likely a failed connection within your tests and, if so, adding timeouts will likely make that obvious.Brent Bradburn

3 Answers

1
votes

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.

So fix is to set a timeout on connect and read in HTTP Request Defaults.

Also you shoud upgrade to JMeter 2.13.

0
votes

To further breakdown UBIK LOAD PACK's comments,

  • Navigate to Testplan level and 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)

0
votes

I started seeing this error when I mistakenly disabled my Test Suite in JMeter UI. I kept on running the jmeter command in terminal and was getting this error. Re-enabling it fixed the error. It was a dumb mistake but worth mentioning 😅