You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2006/04/18 01:55:12 UTC
DO NOT REPLY [Bug 39330] New: - Incorrect Aggregate Throughput Calculation
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
Summary: Incorrect Aggregate Throughput Calculation
Product: JMeter
Version: 2.1.1
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: minor
Priority: P4
Component: Main
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: jparrpearson@galdosinc.com
When using an aggregate report for a thread with a loop count (either on the
thread or using a loop controller) the 'Throughput' column is not calculated
correctly.
For example:
I have a loop count of 4 on a thread that has one request (so it should execute
the request four times when I run the test group). Here are the time and
throughput values from a sample run taken from JMeter:
Response Time (s, from 'View Results in Table' report) - Average Throughput
(#/min, from 'Aggregate Report')
1. 23.1s - 2.6/min
2. 22.6s - 1.9/min
3. 23.6s - 1.7/min
4. 22.9s - 1.6/min
Notice how the response times are very similar, yet the average throughput
value as reported by JMeter decreases and is not consistent with what we would
expect. If we add up the time for all four requests we get 102.2s or ~1.6
minutes, which is what the aggregate report shows. However this is not taking
into account that this is for four iterations of the same request over that
time, not just one. The actual value should be very close to 2.6/min as
reported after the first request since all the times average to about 23s.
As a result, it appears that the calculation does not correctly factor the
number of loops executed (either on the thread group or on a loop controller
within the thread) into the calculation when reporting the throughput value on
the aggregate report.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39330] - Incorrect Aggregate Throughput Calculation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
------- Additional Comments From sebb@apache.org 2006-04-18 22:20 -------
When I load the JTL file in the aggregate report listener, it shows the
individual throughput as about 1.6 samples/min; overall throughput as 4.5/minute.
The test ran for 161069 milliseconds = (final start time + final elapsed time -
initial start time), and there were 12 samples.
I make that (12*60)/161.069 = 4.47 samples per minute, which agrees with the
Aggregate report.
The slight variation in the other throughput figures is no doubt due to the
slightly different overall times for the other samples (I've not done the
calculations)
What should the Aggregate Report do differently?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39330] - Incorrect Aggregate Throughput Calculation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
sebb@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From sebb@apache.org 2006-04-18 00:36 -------
Are there any timers in the test plan?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39330] - Incorrect Aggregate Throughput Calculation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
------- Additional Comments From jparrpearson@galdosinc.com 2006-04-18 19:35 -------
Created an attachment (id=18128)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18128&action=view)
Example JTL Output File
The attached JTL file is the Aggregate Report output from JMeter when running
the attached JMX test plan.
I know that the timer value will be used in the calculation, but 0.5s is
negligible when compared to the ~23s response time for the requests (Q1
especially). Even without the timer I get the same results; when there is more
than one request the throughput is not calculated as I would expect.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39330] - Incorrect Aggregate Throughput Calculation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
------- Additional Comments From jparrpearson@galdosinc.com 2006-04-18 22:36 -------
Just looking at one of the samples, Q1, the problem is that JMeter is reporting
1.6 samples/min, when the actual value should be close to 2.6 samples/min.
JMeter correctly reports 2.6 samples/min when Q1 is the only sample in the
thread group after all 4 loop iterations. However, when additional samples are
added to the thread group the throughput is listed as only 1.6 samples/min for
Q1 when the response times are consistent and the throughput should stay the
same (~2.6).
If a sample takes about 23 seconds to complete (and all the samples were very
close to this time) and the timer value is negligible (.5s) it would make sense
that after all 4 loop iterations the throughput would be about (23s + timer +
JMeter think time goes into a minute about 2.6 times) 2.6 samples/min not 1.6
samples/min.
Am I misunderstanding the way JMeter should calculate this throughput value, or
is there a bug when more than one sample is in a thread that throws this
calculation off?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39330] - Incorrect Aggregate Throughput Calculation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
------- Additional Comments From jparrpearson@galdosinc.com 2006-04-18 16:31 -------
Created an attachment (id=18126)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18126&action=view)
Example JMX File (Multiple requests and one timer in a thread)
The attached file (example.jmx) is a subset of a test plan I am using. There
is one thread with three requests and a timer (0.5s - negligible). I have done
some additional investigation and when there is only one request in the thread
JMeter displays the correct throughput value (even after multiple loops), but
with more than one request the throughput value decreases (according to JMeter)
when we would expect it to stay the same. We have checked the server logs and
the timestamps after a test run and do not calculate any decrease in
throughput.
What is the exact throughput calculation and queuing model being used by
JMeter? Perhaps it is different from what I assumed it to be.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39330] - Incorrect Aggregate Throughput Calculation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
sebb@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |INVALID
------- Additional Comments From sebb@apache.org 2006-04-18 23:34 -------
I'll update the documentation.
If you want to suggest a different calculation method, please raise a Bugzilla
enhancement request, and we'll see about incorporating it in a future release.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39330] - Incorrect Aggregate Throughput Calculation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
------- Additional Comments From jparrpearson@galdosinc.com 2006-04-18 23:24 -------
I see how JMeter handles it now, although this is not the value I want (I will
have to calculate it myself with the JMeter output). Maybe this should be
documented better in the component reference or elsewhere; that samples will
influence the other samples' throughput and reporting values within the same
thread. When looking over the component reference for the Aggregate Report and
other places this is not apparent.
Thanks for your help Sebb.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39330] - Incorrect Aggregate Throughput Calculation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
------- Additional Comments From sebb@apache.org 2006-04-18 17:53 -------
Remember that the timer will apply to all samples.
Also, all the listener output files will contain exactly the same data (unless
you have specified different fields)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39330] - Incorrect Aggregate Throughput Calculation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
------- Additional Comments From sebb@apache.org 2006-04-18 23:13 -------
When calculating the aggregate throughput of a particular sample type, JMeter
takes into account the total time over which those samples were generated.
That is how it appears to the server.
The other samples in the thread also take time to run. For the purpose of
calculating throughput of Sample Q1, samples Q2 & Q3 might as well be timers.
OK?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39330] - Incorrect Aggregate Throughput Calculation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39330>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39330
------- Additional Comments From sebb@apache.org 2006-04-18 17:46 -------
It would be helpful to have an example JTL file in either CSV or XML format.
Make sure that the time stamp and time fields are present; thread name would
also be useful. No need for response data etc.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org