Bug 48799 - Add connect time to output metrics
Summary: Add connect time to output metrics
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: Nightly (Please specify date)
Hardware: PC Linux
: P2 enhancement with 1 vote (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2010-02-22 22:03 UTC by Pieter Ennes
Modified: 2015-02-25 07:06 UTC (History)
2 users (show)



Attachments
Add connect and processing time metrics (18.04 KB, text/plain)
2010-02-22 22:03 UTC, Pieter Ennes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter Ennes 2010-02-22 22:03:02 UTC
Created attachment 25039 [details]
Add connect and processing time metrics

Hi all,

I'm sending a small patch that mainly adds a connect time measurement
to the HTTP and SOAP samplers. Also included, but disabled by default,
is a 'processing' time that just sums the already existing latency
times into the parent sampler.

I'm looking forward to your comments, and am willing to look into
adding the same for other samplers where appropriate. Also I plan to
add a resolve time measurement, but this seemed to need some code in
deeper classes (tips very welcome!).

This was built against svn trunk on 2010-02-20.

Cheers,
Pieter
Comment 1 Sebb 2010-02-23 16:52:59 UTC
Connect time seems useful, but I don't understand why one needs the "processing" time.
Comment 2 Pieter Ennes 2010-02-23 22:15:10 UTC
For us the aggregated value is of use in case of a redirect or when embedded elements are loaded.

After a hardware upgrade on the server side, the relative 'processing' time is likely to drop more rapidly than the measured download time, i.e. the 'transfer' time, if defined as t-pt would stay the same.

On the other hand, after a network upgrade, the total time is likely to drop more than the processing time. Hence one could differentiate between a hardware upgrade (t-pt the same), and a network upgrade (t-pt decreased).

Additionally, in case of a redirect, the aggregated processing time in the parent element could give something like a user-experienced latency, since he only starts seeing things after the last page.

Finally: since the size, connect and total times are already aggregated, my symmetry neuron liked to see the same for the latency but without disturbing anything, hence processing time.

What is your opinion?
Comment 3 Philippe Mouawad 2014-12-06 13:52:52 UTC
More up to date patch by Andrey Pokhilko:
https://github.com/apache/jmeter/pull/11.patch
Comment 4 Milamber 2015-01-05 21:12:28 UTC
URL: http://svn.apache.org/r1649663
Log:
48799 - Add connect time to output metrics
Add French missing translation (and some ordering in key values)



Modified:
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
Comment 5 Milamber 2015-01-05 21:13:42 UTC
(for undera)

URL: http://svn.apache.org/r1649629
Log:
48799 - Add connect time to output metrics

Added:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/MeasuringConnectionManager.java
Modified:
    jmeter/trunk/bin/jmeter.properties
    jmeter/trunk/bin/testfiles/AssertionTestPlan.jmx
    jmeter/trunk/bin/testfiles/AuthManagerTestPlan.jmx
    jmeter/trunk/bin/testfiles/GenTest210.jmx
    jmeter/trunk/bin/testfiles/GenTest27.jmx
    jmeter/trunk/bin/testfiles/GuiTest.jmx
    jmeter/trunk/bin/testfiles/GuiTest231.jmx
    jmeter/trunk/bin/testfiles/HeaderManagerTestPlan.jmx
    jmeter/trunk/bin/testfiles/InterleaveTestPlan.jmx
    jmeter/trunk/bin/testfiles/InterleaveTestPlan2.jmx
    jmeter/trunk/bin/testfiles/LoopTestPlan.jmx
    jmeter/trunk/bin/testfiles/OnceOnlyTestPlan.jmx
    jmeter/trunk/bin/testfiles/SimpleTestPlan.jmx
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/SamplerResultTab.java
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/TableVisualizer.java
    jmeter/trunk/src/core/org/apache/jmeter/control/TransactionController.java
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
    jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java
    jmeter/trunk/src/core/org/apache/jmeter/samplers/StatisticalSampleResult.java
    jmeter/trunk/src/core/org/apache/jmeter/save/CSVSaveService.java
    jmeter/trunk/src/core/org/apache/jmeter/save/converters/SampleResultConverter.java
    jmeter/trunk/src/core/org/apache/jmeter/visualizers/TableSample.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
    jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/glossary.xml
    jmeter/trunk/xdocs/usermanual/listeners.xml
Comment 6 Andrey Pokhilko 2015-01-06 12:36:19 UTC
URL: http://svn.apache.org/r1649759
Log:
48799 - Add connect time to output metrics / misprints and cosmetics

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/MeasuringConnectionManager.java
    jmeter/trunk/xdocs/usermanual/glossary.xml
Comment 7 Andrey Pokhilko 2015-01-06 13:32:13 UTC
URL: http://svn.apache.org/r1649800
Log: 48799 - Add connect time to output metrics
  Revert JMX changes and modify SampleSaveConfigurationConverter appropriately

Modified:
    jmeter/trunk/bin/testfiles/AssertionTestPlan.jmx
    jmeter/trunk/bin/testfiles/AuthManagerTestPlan.jmx
    jmeter/trunk/bin/testfiles/GenTest210.jmx
    jmeter/trunk/bin/testfiles/GenTest27.jmx
    jmeter/trunk/bin/testfiles/GuiTest.jmx
    jmeter/trunk/bin/testfiles/GuiTest231.jmx
    jmeter/trunk/bin/testfiles/HeaderManagerTestPlan.jmx
    jmeter/trunk/bin/testfiles/InterleaveTestPlan.jmx
    jmeter/trunk/bin/testfiles/InterleaveTestPlan2.jmx
    jmeter/trunk/bin/testfiles/LoopTestPlan.jmx
    jmeter/trunk/bin/testfiles/OnceOnlyTestPlan.jmx
    jmeter/trunk/bin/testfiles/SimpleTestPlan.jmx
    jmeter/trunk/src/core/org/apache/jmeter/save/converters/SampleSaveConfigurationConverter.java
Comment 8 Andrey Pokhilko 2015-02-25 07:06:33 UTC
URL: http://svn.apache.org/r1662172
Log:
Bug 48799 - Add connect time to output metrics (missed setSample)

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
Comment 9 The ASF infrastructure team 2022-09-24 20:37:44 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2348