Bug 64118 - In html report Time Vs Threads graph (jmeter distributed environment) shows only one slave machines thread count instead of combined thread count on x axis.
Summary: In html report Time Vs Threads graph (jmeter distributed environment) shows o...
Status: NEEDINFO
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.2.1
Hardware: All All
: P2 major with 2 votes (vote)
Target Milestone: JMETER_5.4
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-06 08:31 UTC by Saurabh Barthwal
Modified: 2021-02-06 11:25 UTC (History)
2 users (show)



Attachments
JMETER-LOG FILE (13.84 KB, text/plain)
2020-02-11 04:37 UTC, Saurabh Barthwal
Details
Response time vs thread graph which shows wrong thread count on x axis (86.37 KB, image/png)
2020-02-11 04:40 UTC, Saurabh Barthwal
Details
Active thread vs time graph which shows correct combined thread count from both jmeter slaves (79.83 KB, image/png)
2020-02-11 04:42 UTC, Saurabh Barthwal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Saurabh Barthwal 2020-02-06 08:31:46 UTC
In jmeter distributed environment and distributing load on multiple slave machines. after this running JMeter -g <csv file> -o <output folder> command to get HTML report from output CSV file. The report "Time Vs Threads" graph shows only one slave machine thread count instead of a combined thread count on x-axis.

e.g. if my slave 1 and slave 2 running 10 thread each but generated graph shows 10 number of active thread on X-axis of "Time Vs Threads" but it should be 20. It creates a problem during performance analysis.

It works fine with a single slave ((load generator)) if we increase the slave (load generator), count "Time Vs Threads" graph shows only one slave machine thread count.
Comment 1 Philippe Mouawad 2020-02-10 19:58:18 UTC
Hello,
Can you provide jmeter.log file ?
Thank you
Comment 2 Saurabh Barthwal 2020-02-11 04:37:57 UTC
Created attachment 37000 [details]
JMETER-LOG FILE

JMETER-LOG FILE
Comment 3 Saurabh Barthwal 2020-02-11 04:40:29 UTC
Created attachment 37001 [details]
Response time vs thread graph which shows wrong thread count on x axis

Response time vs thread graph which shows wrong thread count on x axis. 
test details are mentioned in the attached file
Comment 4 Saurabh Barthwal 2020-02-11 04:42:16 UTC
Created attachment 37002 [details]
Active thread vs time graph which shows correct combined thread count from both jmeter slaves

Active thread vs time graph which shows correct combined thread count from both jmeter slaves.

Test details are mentioned in the attached file
Comment 5 Saurabh Barthwal 2020-02-12 04:51:27 UTC
(In reply to Philippe Mouawad from comment #1)
> Hello,
> Can you provide jmeter.log file ?
> Thank you

I attached the log file as well some test graph info please see comments 2,3,4 in this bug
Comment 6 Felix Schumacher 2021-02-06 11:25:55 UTC
Could you attach a sample JTL file, that you use for the reports?

I think the problem is, that the processing logic looks at the number of threads reported by each worker node. Those nodes have no knowledge of the number of active threads on the other nodes and therefore report the number of active local threads.

The "Active threads vs time graph" groups by timestamp (which is the same on each worker node and can be used without problem). The grouped data splits on the thread name (which can be done, as it is unique among the cluster). This results in a correct reporting.

The "Response time vs thread graph" groups on the number of threads reported by the worker nodes (which is the number of local threads). As we have no knowledge of the timestamp (at least in the current implementation) and no knowledge of the other worker nodes state, these numbers are incorrect when seen from a global point of view.

I am not sure, how we can tackle this problem without introducing either uncertainty (by using assumptions, for example that every worker node has the same number of active threads at that point in time) or by combining the knowledge extracted from "Active threads vs time graph" and using it to interpolate the number of threads (doesn't work well with the current implementation).
Comment 7 The ASF infrastructure team 2022-09-24 20:38:18 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5234