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/09/29 03:47:20 UTC

DO NOT REPLY [Bug 40636] New: - negative time recorded in JMeter log - probably NTP error

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=40636>.
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=40636

           Summary: negative time recorded in JMeter log - probably NTP
                    error
           Product: JMeter
           Version: 2.1.1
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: sonam.chauhan@ce.com.au


I came across this apparent bug where a negative time is recorded for a 
sampler request in the log. I could not replicate this the next morning after 
the automated test run. 

FAULTY LOG: (see negative 'time ="-4"' in last logentry)
---------
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.1">

[ ... ] 

<sampleResult timeStamp="1159440609172" dataType="text" 
threadName="Integration Tests Thread Group 1-1" label="Post request to 
translate ERP 'TUB' UOM to ISO ANSI X.12 standard - verify it was translated 
to 'EA' - the fallback UOM" time="45" responseMessage="OK" responseCode="200" 
success="true"><assertionResult failureMessage="" error="false" 
failure="false"/></sampleResult>
<sampleResult timeStamp="1159440609176" dataType="text" 
threadName="Integration Tests Thread Group 1-1" label="Post request to 
translate ERP 'TU' UOM to xCBL2.0 standard - verify it was translated to 'TU'" 
time="-4" responseMessage="OK" responseCode="200" 
success="true"><assertionResult failureMessage="" error="false" 
failure="false"/></sampleResult>
</testResults>
---------


However, I just took a look at Network time protocol logs on that machine, it 
looks like NTP issues caused the problem  - these entries seem to correspond 
to the time the test ran:
--------------------------------------
Sep 28 21:07:53 xx ntpd[950]: synchronisation lost
Sep 28 21:27:07 xx ntpd[950]: time reset 3.355363 s
Sep 28 21:27:07 xx ntpd[950]: synchronisation lost
Sep 28 22:22:00 xx ntpd[950]: time reset -0.497615 s
Sep 28 22:22:00 xx ntpd[950]: synchronisation lost
--------------------------------------

So I am not sure whether to report this or not, but thought I'd do so all the 
time.

-- 
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 40636] - negative time recorded in JMeter log - probably NTP error

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=40636>.
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=40636





------- Additional Comments From alf@i100.no  2007-03-17 13:40 -------
I think this can be closed as "not a bug".

If you change the system clock while running a Jmeter test, the time
measurements will become wrong, and you risk getting negative durations.

Look for example at :
http://forum.java.sun.com/thread.jspa?threadID=640637&messageID=3766162
(Look at the post "Jun 30, 2005 9:49 AM (reply 4 of 16)" and ignore the rest)

>From the bug report, one can see that the "ntpd deamon" has set the clock back
0.5 seconds
"
Sep 28 22:22:00 xx ntpd[950]: time reset -0.497615 s
Sep 28 22:22:00 xx ntpd[950]: synchronisation lost
"

So I think this bug can be closed until someone reports problems with negative
time recorded, and the system clock has not been adjusted in the period where
the test was executed.

-- 
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 40636] - negative time recorded in JMeter log - probably NTP error

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=40636>.
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=40636


sebb@apache.org changed:

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




------- Additional Comments From sebb@apache.org  2007-03-17 13:51 -------
Agreed.

Setting status accordingly.

-- 
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