1
votes

I have a master/slave for jmeter set up using jmeter 5.1 For time to time I am noticing the tests just hangs up while waiting for threads to shutdown.

In the jmeter.logs I am seeing:

2020-02-06 00:06:35,100 INFO o.a.j.r.Summariser: summary + 9 in 00:30:34 = 0.0/s Avg: 5647 Min: 5520 Max: 5833 Err: 0 (0.00%) Active: 1 Started: 4 Finished: 3

I tried waiting but it never finishes this 1 active thread and it causes issue for rest of the steps I have in the pipeline to read the jmeter test result file and generate HTML report.

Any suggestions how to debug this?

I saw this post: Threads keep running even after test finishes in Jmeter

But would be nice to understand the issue, rather than just forcing the threads to stop.

Regards, Vikas

1

1 Answers

1
votes

If you want to "understand" the issue you need to understand what this thread is doing and the only way to get the information is taking a JVM thread dump, the options are in:

  1. Starting from JMeter version 3.2 there is an option to take a thread dump directly from JMeter GUI

    enter image description here

  2. You can use jstack tool and provide to it the PID of the Java process where JMeter is running
  3. On Linux you can use kill -3 command which will print the status of threads into the console window

You can also check jmeter-server.log for for any suspicious entries.