Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 24294 invoked from network); 11 Aug 2005 19:40:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2005 19:40:13 -0000 Received: (qmail 37183 invoked by uid 500); 11 Aug 2005 19:40:10 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 37150 invoked by uid 500); 11 Aug 2005 19:40:10 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 37120 invoked by uid 99); 11 Aug 2005 19:40:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 12:40:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of woolfel@gmail.com designates 64.233.170.202 as permitted sender) Received: from [64.233.170.202] (HELO rproxy.gmail.com) (64.233.170.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 12:40:31 -0700 Received: by rproxy.gmail.com with SMTP id r35so389894rna for ; Thu, 11 Aug 2005 12:40:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hjQNe4XZKnV5c+OO45eg8fJGwb+gomLTf7h6+tapefKEMuBmTJglWe56YZHKZQDA1C/iXu1WXS88qXb6AwGD3BKh2zDst2IyCWEmfnWnL99NHTFga2wf/WsGGUIhu/9sAXv/bbSoBphjF8gcDxXWd21CViTTfVf9R3atyJO8aRw= Received: by 10.38.76.64 with SMTP id y64mr763388rna; Thu, 11 Aug 2005 12:40:08 -0700 (PDT) Received: by 10.38.86.39 with HTTP; Thu, 11 Aug 2005 12:40:08 -0700 (PDT) Message-ID: <27e674a905081112407be3e085@mail.gmail.com> Date: Thu, 11 Aug 2005 15:40:08 -0400 From: Peter Lin To: JMeter Users List Subject: Re: AccessLogSampler multiple files In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N the way AccessLogSampler works is it will parse 1 line in the access log per request. say you have a thread group with 30 threads. after each of the 30 threads have sent 1 request, the sampler would have parsed 30 lines of access log. This means, the 30 threads will not repeat the same request another thread just executed. does that help? peter On 8/11/05, 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. >=20 > 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. >=20 > 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. >=20 > 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? >=20 > (BTW, I'm using the 20050807 version of JMeter. Version 2.0.3 has > problems with the access log sampler.) >=20 > Thanks >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org