jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: AccessLogSampler & Bug 53748
Date Sat, 15 Jun 2013 23:47:28 GMT
On 15 June 2013 21:31, Philippe Mouawad <philippe.mouawad@gmail.com> wrote:
> Hello,
> Working on https://issues.apache.org/bugzilla/show_bug.cgi?id=53748 I have
> some questions about AccessLogSampler.
>
> I never use it so I am not sure to understand everything:

I've not used it either (apart from unit tests).
I think the idea originally was to run a simple functional test
against a server.

>    - Currently to be realistic it seems to me users need to split the
>    access log file into as many part as there are client IPs, otherwise it's
>    behaviour could be strange:
>       - Different threads could call URLs of one real client
>
> Do I understand well ?

Yes.

There was an idea to use a shared file reader that could split the
file by IP or host and feed the result to the appropriate thread.
Possibly even including pauses as well.

But not much came of it - this was some while ago when JMeter was
still on Java 1.4, so it may be a lot easier to implement now, as
there are lots more options for producer/consumer threads.

Using one file per thread has disadvantages - if there are lots of
threads, the OS can run out of file handles.
A better solution might be to use a memory cache (queue?) to hold just
the requests that are due for execution.
The file reader could post requests as they became due, and the
sampler thread would wait for work to become available.

>
> If yes , then it seems the proposed generator in 53748 would be helpful ,
> if not how does it really work and is supposed to be used ?
>
>
> Regards
>
> Philipp

Mime
View raw message