Home > Back-end >  Jmeter CLI stops tests after sometime. Any ideas?
Jmeter CLI stops tests after sometime. Any ideas?

Time:01-27

When I run Jmeter from Windows CLI, after some random time, the tests are being stopped or stuck. I can click on ctrl C (one time) just to refresh the run but part of the request will be lost during the time it was stuck.

CodePudding user response:

  1. Take a look at jmeter.log file, normally it should be possible to figure out what's wrong by looking at messages there. If you don't see any suspicious entries there - you can enter image description here

    Another way you can monitor your test execution in real time within the JMeter GUI is with the Log Viewer. If any exceptions are encountered during your test execution you will see detailed output in this window. This can be found under the Options menu: enter image description here

    Beyond this, JMeter records output files which are often very useful in debugging you load tests. Both the .log file and the .jtl file will provide a time stamped history of every action your test performs. From there you can likely track down the offending request or error if your test unexpectedly hangs: enter image description here

    If you do decide to move your test into the cloud using a service that hosts your test, you may be able to ascertain more information through that platform. Here is a comprehensive example on how to debug JMeter load tests that covers the above approaches as well as more advanced concepts. Using a cloud load test provider can provide your test will additional network and machine resources beyond what your local machine can, if the problem is related to a performance bottleneck.

  • Related