You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2014/12/12 15:40:13 UTC

[Bug 57346] New: Summariser : The + reports wrong "in" and as impact computes wrond throughput

https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

            Bug ID: 57346
           Summary: Summariser : The + reports wrong "in" and as impact
                    computes wrond throughput
           Product: JMeter
           Version: 2.12
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: support@ubikloadpack.com

Hello,
We have a test with and average of 155 to 160 req/s.

Summariser is configured to display every 10s:
summariser.name=summary
# interval between summaries (in seconds) default 3 minutes
summariser.interval=10
# Write messages to log file
summariser.log=true
# Write messages to System.out
summariser.out=true

It shows the following:
summary +   1597 in   591s =    2.7/s Avg:   276 Min:     0 Max: 18732 Err:    
0 (0.00%) Active: 3024 Started: 3024 Finished: 0
summary = 1372439 in  8683s =  158.1/s Avg:   316 Min:     0 Max: 32952 Err:   
 3 (0.00%)
summary +   1676 in   580s =    2.9/s Avg:   250 Min:     0 Max: 18193 Err:    
0 (0.00%) Active: 3024 Started: 3024 Finished: 0
summary = 1374115 in  8693s =  158.1/s Avg:   316 Min:     0 Max: 32952 Err:   
 3 (0.00%)
summary +   1640 in   591s =    2.8/s Avg:   326 Min:     0 Max: 20648 Err:    
0 (0.00%) Active: 3024 Started: 3024 Finished: 0
summary = 1375755 in  8703s =  158.1/s Avg:   316 Min:     0 Max: 32952 Err:   
 3 (0.00%)
summary +   1552 in   589s =    2.6/s Avg:   344 Min:     0 Max: 19179 Err:    
0 (0.00%) Active: 3024 Started: 3024 Finished: 0
summary = 1377307 in  8713s =  158.1/s Avg:   316 Min:     0 Max: 32952 Err:   
 3 (0.00%)



As you can see, summary throughtput is OK while interval throughput is wrong:
It says 589s instead of 10s
It computes 2.6/s to 2.9/s due to the time interval.
If it had divided by 10 throughput would be OK.

Issue affects all version of JMeter from 2.6 to 2.12

Regards
@ubikloadpack

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + (difference) reports show wrong elapsed time and throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

--- Comment #4 from UbikLoadPack support <su...@ubikloadpack.com> ---
Created attachment 32324
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32324&action=edit
Test plan showing issue

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + (difference) reports show wrong elapsed time and throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Sebb <se...@apache.org> ---
I cannot reproduce this.
Does the test use any 3rd party add-ons?

Can you provide a simple test case that shows the issue?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + reports wrong "in" and as impact computes wrong interval throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

UbikLoadPack support <su...@ubikloadpack.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Summariser : The + reports  |Summariser : The + reports
                   |wrong "in" and as impact    |wrong "in" and as impact
                   |computes wrond throughput   |computes wrong interval
                   |                            |throughput

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + (difference) reports show wrong elapsed time and throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #8 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Date: Sun Dec 28 13:58:42 2014
New Revision: 1648204

URL: http://svn.apache.org/r1648204
Log:
BUG 57346 Summariser : The + (difference) reports show wrong elapsed time and
throughput
Remove useless index field
Add javadocs
Add Apache License Header
Bugzilla Id: 57346

Modified:
   
jmeter/trunk/src/core/org/apache/jmeter/reporters/SummariserRunningSample.java

Date: Sun Dec 28 13:59:38 2014
New Revision: 1648205

URL: http://svn.apache.org/r1648205
Log:
BUG 57346 Summariser : The + (difference) reports show wrong elapsed time and
throughput
Impact removal of useless index field in SummariserRunningSample
Add javadocs
Rename some variables to make code clear
Bugzilla Id: 57346

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/reporters/Summariser.java

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + (difference) reports show wrong elapsed time and throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

--- Comment #9 from UbikLoadPack support <su...@ubikloadpack.com> ---
Hi,
We tested with nightly build and it is working fine.
Thanks a lot for the fix.

And happy new year 2015 to the Apache JMeter team.

Regards
@ubikloadpack

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + reports wrong "in" and as impact computes wrong interval throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

--- Comment #1 from UbikLoadPack support <su...@ubikloadpack.com> ---
Hi,
One additional info, the report really happens every 10 seconds but the  in
"XXXX" is wrong as long as throughput which uses it.

Regards
@ubikloadpack

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + (difference) reports show wrong elapsed time and throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

--- Comment #6 from Sebb <se...@apache.org> ---
Further notes: 
The DELTA RunningSample start time needs to be reset each time, but the TOTAL
RunningSample start time needs to remain as the start of the test. For both,
the end time needs to be the time when the samples are merged/printed.

The RunningSample class was created a long while before the Summariser.
It only now seems to be used for the Summariser.
Previously it was used for the StatVisualizer; possibly other classes.
The code may still be useful as it is, so probably best to create a new (local)
class for handling the accumulation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + (difference) reports show wrong elapsed time and throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

--- Comment #5 from Sebb <se...@apache.org> ---
OK, I see the problem now.

At present the times are taken from the samples; they should really be taken
from the current time.

This applies to both total types, though the problem is unlikely to be noticed
with the overall total. At present, the overall total does not take into
account that the start time might be later than the start of the actual test.
Also that the end-time might be later than the end of the last sample (there
may be initial and final time delays).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + (difference) reports show wrong elapsed time and throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Summariser : The + reports  |Summariser : The +
                   |wrong "in" and as impact    |(difference) reports show
                   |computes wrong interval     |wrong elapsed time and
                   |throughput                  |throughput

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + (difference) reports show wrong elapsed time and throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

UbikLoadPack support <su...@ubikloadpack.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #3 from UbikLoadPack support <su...@ubikloadpack.com> ---
Hi,
When reported we were using jmeter plugins.
But we made new tests without it and issue persists.

I wonder if the problem is not the following:
- What if a sampler takes more than the configured interval of Summariser to
run or even worst what if TransactionController is used and contained such
Samplers.

I think current code of RunningSample would lead to what is happening as
firstTime would be very far in the past.;

I will try to build a simple test plan showing issue.

Regards
@ubikloadpack

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57346] Summariser : The + (difference) reports show wrong elapsed time and throughput

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57346

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Sebb <se...@apache.org> ---
URL: http://svn.apache.org/r1648146
Log:
Summariser : The + (difference) reports show wrong elapsed time and throughput
Bugzilla Id: 57346

Added:
   
jmeter/trunk/src/core/org/apache/jmeter/reporters/SummariserRunningSample.java
Modified:
    jmeter/trunk/src/core/org/apache/jmeter/reporters/Summariser.java
    jmeter/trunk/xdocs/changes.xml

-- 
You are receiving this mail because:
You are the assignee for the bug.