jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronald Garrett" <rgarr...@jstor.org>
Subject RE: AccessLogSampler multiple files
Date Thu, 11 Aug 2005 19:41:17 GMT
Definitely seen it. If you run multiple threads in a Thread Group, then
you can see the same requests scroll by multiple times if you watch the
Apache access_log. Whether the later threads catch up with the first may
well be due to server caching.


-----Original Message-----
From: Michael Stover [mailto:mstover1@apache.org] 
Sent: Thursday, August 11, 2005 2:55 PM
To: jmeter-user@jakarta.apache.org
Subject: Re: AccessLogSampler multiple files

On Thu, 2005-08-11 at 14:57 -0400, Ronald Garrett wrote:
> I'm using the AccessLogSampler to simulate actual web traffic. I've
> gotten it to work reasonably well but still have one problem.
> 
> If I have multiple threads running on the same jmeter instance, then
> they will all read from the same file. This means that the web server
> will get the same requests in the same sequence multiple times (once
for
> each thread). This isn't realistic. If the server caches any results,
> then the later jmeter thread requests will process much faster than
the
> first.

Is this an assumption you're making or did you actually watch it work
this way?  It doesn't sound like how I remember it working.

-Mike

> 
> What I'd like to do is have each thread read from a different file,
> either specified or randomly selected. Say, you'd enter "access_log.*"
> into the Access Log Sampler "Log File" field, and the LogParser
> implementation would randomly choose a specific file that fits that
> filename pattern. Then each jmeter thread would use requests from a
> different file, and you're much less likely to get the unrealistic
> repetition of requests.
> 
> Does the threaded nature of JMeter allow something like this? Does
each
> Thread use the same LogFilter object, or is there one LogFilter object
> per Thread? Has anyone else come across this problem before and solved
> it? Is there a better way than I suggest?
> 
> (BTW, I'm using the 20050807 version of JMeter. Version 2.0.3 has
> problems with the access log sampler.)
> 
> Thanks
> 
> ---------------------------------------------------------------------
> 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

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


Mime
View raw message