Bug 47398 - [patch] SampleEvent are sent twice over RMI in distributed testing and non gui mode
Summary: [patch] SampleEvent are sent twice over RMI in distributed testing and non gu...
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.3.3
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2009-06-22 01:00 UTC by benoit.wiart
Modified: 2009-07-26 12:22 UTC (History)
0 users

jmeter patch (1.95 KB, patch)
2009-06-22 02:12 UTC, benoit.wiart
Details | Diff
result collector patch (1.75 KB, patch)
2009-06-22 02:13 UTC, benoit.wiart
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description benoit.wiart 2009-06-22 01:00:49 UTC
Whe running a distrbuted test with Jmeter in non-gui mode and :
- a log file (-t option)
- a sumarizer

the same sample event (sample result) is sent twice between the slave and the master

the ResultCollector (log file) and Summarizer are added as RemoteListener to the slave tree and associated with a SampleSender.

Each Sample event on the slave machine is sent twice :
- 1 for the Resultcollector
- 1 for the Summarizer 

Patch will follow

Benoit Wiart
Ubik Ingénierie
Comment 1 benoit.wiart 2009-06-22 02:12:34 UTC
Created attachment 23842 [details]
jmeter patch
Comment 2 benoit.wiart 2009-06-22 02:13:06 UTC
Created attachment 23843 [details]
result collector patch
Comment 3 benoit.wiart 2009-06-22 02:14:59 UTC
In the case described by this bug, the patches will cut by half the number of bytes sent by the slaves to the master.
Comment 4 Sebb 2009-07-26 12:22:11 UTC
Thanks for the patch; it's a useful optimisation.

Unfortunately the patch does not work in client-server mode. This is because the ResultCollector clone() method does not call Object.clone().

Patch applied with a fix for the clone() problem:

URL: http://svn.apache.org/viewvc?rev=797975&view=rev
Bug 47398 - SampleEvents are sent twice over RMI in distributed testing and non gui mode