Created attachment 26515 [details] Screenshot of my issue My configuration: Jboss as the app server My Steps: 1. Created 'Monitor Results' as explain it the manual. Since i am working with jboss, the URL for the data is 'http://<IP>:8080/status?XML=true' 2. ran the test 3. look the 'Monitor Results' There are two tabs: 'Health' tab and 'Performance' tab. The 'Health' tab shows the server name and besides it, a black dot, indicating "Dead" server. On the other hand, the left pane is active. It shows the load colours from green to red. In my case, it changes from green to yellow and vice versa. The 'Performance' tab shows the following graphs: Load, Memory and Thread. The 'Health' green line is not drawn. see attached file - 'Bug Screenshot.png'
Created attachment 27529 [details] Fix to the issue Hello, Issue was due to the fact that if cntr.getThreadInfo().getCurrentThreadsBusy() returns 0, the server is considered as dead because we enter last condition: int max = cntr.getThreadInfo().getMaxThreads(); int current = cntr.getThreadInfo().getCurrentThreadsBusy(); // int spare = cntr.getThreadInfo().getMaxSpareThreads(); double per = (double) current / (double) max; if (per > WARNING_PER) { return WARNING; } else if (per >= ACTIVE_PER && per <= WARNING_PER) { return ACTIVE; } else if (per < ACTIVE_PER && per > HEALTHY_PER) { return HEALTHY; } else { return DEAD; } This case can happen if for example, connectorPrefix is set to http-8443 while load test is on port 8080, then first connector will really have 0 busy threads but it will be alive. Regards Philippe
Created attachment 27530 [details] Test plan that shows the issue In this example I monitor http-8443 and see it reproduces the bug mentionned.
Thanks, applied: URL: http://svn.apache.org/viewvc?rev=1172398&view=rev Log: Bug 50617 - Monitor Results legend show "dead" server although values from the server are retrieved Modified: jakarta/jmeter/trunk/src/monitor/components/org/apache/jmeter/monitor/util/Stats.java jakarta/jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2455