You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Yoav Felberbaum <yo...@lokku.com> on 2008/07/22 20:07:44 UTC

Replaying from wireshark dumps?

Hullo all,

I was reading with interest a recent thread from March, entitled "Real  
traffic simulation and Access Log Sampler", which is vaguely similar  
to what I'm after. However, what I would like to do instead is be able  
to replay more detailed requests, including HTTP headers as well.

I was thinking of using Wireshark (or a similar packet sniffer) to log  
'live' data for a period, and then use this log to replay in JMeter.  
However, I can't quite figure out the missing link - namely how to get  
a dump from Wireshark into JMeter for replaying... The format of the  
wireshark dumps (PSML/PDML) seems a touch different from how JMeter  
expects the XML to be formatted...

Apache access logs might be usable as a last resort, but the issue is  
that I would like to be able to replay http headers as well.... Using  
the proxy server in JMeter works as well, but in this case, the issue  
is that this isn't quite enough data, nor "real-world" live data.

Thoughts would be muchly appreciated!

Y.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Replaying from wireshark dumps?

Posted by sebb <se...@gmail.com>.
On 22/07/2008, Yoav Felberbaum <yo...@lokku.com> wrote:
> Hullo all,
>
>  I was reading with interest a recent thread from March, entitled "Real
> traffic simulation and Access Log Sampler", which is vaguely similar to what
> I'm after. However, what I would like to do instead is be able to replay
> more detailed requests, including HTTP headers as well.
>
>  I was thinking of using Wireshark (or a similar packet sniffer) to log
> 'live' data for a period, and then use this log to replay in JMeter.
> However, I can't quite figure out the missing link - namely how to get a
> dump from Wireshark into JMeter for replaying... The format of the wireshark
> dumps (PSML/PDML) seems a touch different from how JMeter expects the XML to
> be formatted...
>
>  Apache access logs might be usable as a last resort, but the issue is that
> I would like to be able to replay http headers as well.... Using the proxy
> server in JMeter works as well, but in this case, the issue is that this
> isn't quite enough data, nor "real-world" live data.
>
>  Thoughts would be muchly appreciated!
>

As far as I know, there's no conversion tool.

If you have any experience of XSLT, then in theory it would not be too
difficult to convert the Wireshark XML format to the JMeter XML
format.

>  Y.
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Replaying from wireshark dumps?

Posted by Ronan Klyne <ro...@groupbc.com>.
Yoav Felberbaum wrote:
> 
> On 23 Jul 2008, at 08:18, Ronan Klyne wrote:
> 
>> Yoav Felberbaum wrote:
>>> Hullo all,
>>> I was reading with interest a recent thread from March, entitled 
>>> "Real traffic simulation and Access Log Sampler", which is vaguely 
>>> similar to what I'm after. However, what I would like to do instead 
>>> is be able to replay more detailed requests, including HTTP headers 
>>> as well.
>>> I was thinking of using Wireshark (or a similar packet sniffer) to 
>>> log 'live' data for a period, and then use this log to replay in 
>>> JMeter. However, I can't quite figure out the missing link - namely 
>>> how to get a dump from Wireshark into JMeter for replaying... The 
>>> format of the wireshark dumps (PSML/PDML) seems a touch different 
>>> from how JMeter expects the XML to be formatted...
>>> Apache access logs might be usable as a last resort, but the issue is 
>>> that I would like to be able to replay http headers as well.... Using 
>>> the proxy server in JMeter works as well, but in this case, the issue 
>>> is that this isn't quite enough data, nor "real-world" live data.
>>> Thoughts would be muchly appreciated!
>>
>> I think tcpreplay would help you here - it works on pcap dumps...
>> http://tcpreplay.synfin.net/trac/
> 
> I might be missing something, but how can I use tcpreplay with JMeter? 
> Keep in mind the point that I want to benchmark my server with replayed 
> "live" data... not simply replay data...

I missed the point then.
With the actual objective in mind, you could maybe use tcpreplay to 
replay the data, and a JMeter proxy to record it all into a JMeter test 
plan...

I'm just hypothesising here, but I think it should work...

	# r

-- 
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
ronan.klyne@groupbc.com
www.groupbc.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Replaying from wireshark dumps?

Posted by Yoav Felberbaum <yo...@lokku.com>.
On 23 Jul 2008, at 08:18, Ronan Klyne wrote:

> Yoav Felberbaum wrote:
>> Hullo all,
>> I was reading with interest a recent thread from March, entitled  
>> "Real traffic simulation and Access Log Sampler", which is vaguely  
>> similar to what I'm after. However, what I would like to do instead  
>> is be able to replay more detailed requests, including HTTP headers  
>> as well.
>> I was thinking of using Wireshark (or a similar packet sniffer) to  
>> log 'live' data for a period, and then use this log to replay in  
>> JMeter. However, I can't quite figure out the missing link - namely  
>> how to get a dump from Wireshark into JMeter for replaying... The  
>> format of the wireshark dumps (PSML/PDML) seems a touch different  
>> from how JMeter expects the XML to be formatted...
>> Apache access logs might be usable as a last resort, but the issue  
>> is that I would like to be able to replay http headers as well....  
>> Using the proxy server in JMeter works as well, but in this case,  
>> the issue is that this isn't quite enough data, nor "real-world"  
>> live data.
>> Thoughts would be muchly appreciated!
>
> I think tcpreplay would help you here - it works on pcap dumps...
> http://tcpreplay.synfin.net/trac/

I might be missing something, but how can I use tcpreplay with JMeter?  
Keep in mind the point that I want to benchmark my server with  
replayed "live" data... not simply replay data...

Thanks!

Y.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Replaying from wireshark dumps?

Posted by Ronan Klyne <ro...@groupbc.com>.
Yoav Felberbaum wrote:
> Hullo all,
> 
> I was reading with interest a recent thread from March, entitled "Real 
> traffic simulation and Access Log Sampler", which is vaguely similar to 
> what I'm after. However, what I would like to do instead is be able to 
> replay more detailed requests, including HTTP headers as well.
> 
> I was thinking of using Wireshark (or a similar packet sniffer) to log 
> 'live' data for a period, and then use this log to replay in JMeter. 
> However, I can't quite figure out the missing link - namely how to get a 
> dump from Wireshark into JMeter for replaying... The format of the 
> wireshark dumps (PSML/PDML) seems a touch different from how JMeter 
> expects the XML to be formatted...
> 
> Apache access logs might be usable as a last resort, but the issue is 
> that I would like to be able to replay http headers as well.... Using 
> the proxy server in JMeter works as well, but in this case, the issue is 
> that this isn't quite enough data, nor "real-world" live data.
> 
> Thoughts would be muchly appreciated!

I think tcpreplay would help you here - it works on pcap dumps...
http://tcpreplay.synfin.net/trac/


	# r

-- 
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
ronan.klyne@groupbc.com
www.groupbc.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org