Bug 47398

Summary: [patch] SampleEvent are sent twice over RMI in distributed testing and non gui mode
Product: JMeter Reporter: benoit.wiart
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.3.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: jmeter patch
result collector patch

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
www.ubik-ingenierie.com
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
Log:
Bug 47398 - SampleEvents are sent twice over RMI in distributed testing and non gui mode