Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7A55104FA for ; Wed, 14 Aug 2013 15:13:50 +0000 (UTC) Received: (qmail 74919 invoked by uid 500); 14 Aug 2013 15:13:50 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 74696 invoked by uid 500); 14 Aug 2013 15:13:44 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 74679 invoked by uid 99); 14 Aug 2013 15:13:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 15:13:42 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of praumesh86@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 15:13:38 +0000 Received: by mail-we0-f175.google.com with SMTP id q58so5868384wes.34 for ; Wed, 14 Aug 2013 08:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=JucjBJgXGvMva5+xNmsZC/G11hZvhDl6UZFHsi5br0U=; b=0vAvJvZvZVziCTzkBHvYbQ5mii9RCXpy8Y5IwxcclnPV3QSw2boTm8SFqSoAR3uMja I7zJ56PZMEETsOGxT9oPxrY/uvHPygzxyCKw20TZpcvEcVtDb+G1288sO2wEBb5Qo+KE cKFxUY3cBxsAUnOF8PUiJm8ERNrikdkBaiOrh97tXfGwV0GBXkjLmLPql4PlNFUznacQ TZ9YmnoRIPmKrja+djWKDvpbJUQgehOUxWO2o4iPAmemOcwbxtbicwmKYsdCTZH7TdR0 t+p1kjZGlr4t/thfriyZecxYtnJCMq8Drg+rk+Xx/jUEgf8kPzg3hTyx2lOP3LVcnf5t xlMg== MIME-Version: 1.0 X-Received: by 10.180.94.69 with SMTP id da5mr2158221wib.3.1376493196325; Wed, 14 Aug 2013 08:13:16 -0700 (PDT) Received: by 10.194.133.74 with HTTP; Wed, 14 Aug 2013 08:13:16 -0700 (PDT) In-Reply-To: References: <1290163772011-3272154.post@n5.nabble.com> <1290166686383-3272187.post@n5.nabble.com> <4CE661FE.1020808@mpexnet.de> <1290167582916-3272195.post@n5.nabble.com> <4CE665D7.3080400@mpexnet.de> <1290170401896-3272238.post@n5.nabble.com> <1376434984001-5717838.post@n5.nabble.com> Date: Wed, 14 Aug 2013 08:13:16 -0700 Message-ID: Subject: Re: Loop Count vs Number of Threads From: umesh prajapati To: JMeter Users List Content-Type: multipart/alternative; boundary=f46d0442694a00baf204e3e9cca0 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0442694a00baf204e3e9cca0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable when I meant by error, i have assertion on my jmeter test plan. Since it didnt meet assertion it failed. @Manish yes that configuration worked when i tried it . But lets say when i have 250 students and I would like 2000 students to login in 1 hr. So, basically in 1 minute 33 users login. Thread group :250 ramp up: 450 loop: 1 If i run the test in this configureation, all the assertion that i have pass and it shows no error. But If i would like to run this test longer and I increase the number of loops. Thread Group: 250 ramp up: 450 loop:3 Now, the assertions that i have do not pass and it shows errror. I know in my application, one user is not allowed to login multiple times until the session thats logged in is logged out. so, I am wondering, when I have loop 3. Does all the loop starts at once? if so than that is causing my assertion to fail and giving error. @Flavio I dont need to start all my thread at once, But I would like to test the real scenario, where 2000 users login in 2 hrs. So, basically 1 min 33 users. On Wed, Aug 14, 2013 at 5:25 AM, Flavio Cysne wrote= : > Just test it here with JMeter 2.9. > > Threads Group (threads: 5, rampup: 0, loop: 3) > - Debug sampler > - Gaussian Random Timer (deviation: 400, offset: 600) > > Thread Group 1-1 started after Thread Group 1-5 second execution > > Loop count is for each thread not for all threads together. > > In your case, if you want to all threads start together for each loop > you'll have to use a different approach: > > Synchronizing Timer using all threads > and to simulate rampup you can use a Constant Timer with this expression: > ${__javaScript(${__threadNum()}*300)} > where 300 is the time gap between two threads to start. > with this the first thread will start at 300ms from test start, second at > 600ms, third at 900ms, and so on > > If you need to use distributed testing with this approach you'll have to > define a system property for every server (or using a property defined in > command line) with distinct values. > For example, if you have 5 machines, the first machine you'll define a > system property called custom.machine.index=3D1, second machine will have= a > value of 2, and so on. > Constant timer expression will change slightly: > ${__javaScript(${__threadNum()}*${__P(custom.machine.index,1)}*300)} > > Hope it helps you. > > > > 2013/8/14 Manish Sapariya > > > Does following configuration work? > > > > Thread group: 1 > > ramp up: 1 > > loop: 2 > > > > Thanks and Regards, > > Manish > > kPoint wins *Global eLearning > > Award< > http://www.kpoint.com/kpoint-wins-learntech-global-e-learning-award/ > > > > > * in =93Learning Technologies Solution=94! > > > > > > On Wed, Aug 14, 2013 at 4:41 AM, umesh prajapati > >wrote: > > > > > My second thought is, if loop is not the issue, is jmeter cookie kill= er > > not > > > clearing my cookies session each iteration?? > > > > > > > > > On Tue, Aug 13, 2013 at 4:03 PM, guru wrote: > > > > > > > I have question regarding loop.. and wondering if anyone could help > me > > > out. > > > > > > > > Thread group: 250 > > > > ramp up: 450 > > > > loop: 1 > > > > > > > > I get no error. > > > > > > > > Thread group: 250 > > > > ramp up:450 > > > > loop:2 > > > > > > > > I get error > > > > > > > > Thread group: 250 > > > > ramp up: 450 > > > > loop:3 > > > > > > > > I get error > > > > > > > > > > > > Thread group: 10 > > > > ramp up: 1 > > > > loop: 1 > > > > > > > > No error > > > > > > > > Thread group: 10 > > > > ramp up: 1 > > > > loop: 5 > > > > > > > > I get error > > > > > > > > > > > > I am testing SSO login, and our application do not allow user to > login > > in > > > > twice. user has to logout. > > > > > > > > In my test i have a request for login and logout.. > > > > > > > > I am reading 250 different users from a file. > > > > > > > > But when I have loop, these users are repeated. > > > > > > > > My question is when I have loop count =3D 2 or 3. Do all the loop g= et > > > started > > > > same time or does 2nd loop starts only after the first loop has > > > completed. > > > > > > > > I have a feeling this error has to do with loop since i am not > getting > > > > error > > > > in loop count 1. But I do not understand why it is giving me error > when > > > > loop > > > > count is 2 or more. When I have logout request and as well as clear > > > cookies > > > > each iteration. > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > View this message in context: > > > > > > > > > > http://jmeter.512774.n5.nabble.com/Loop-Count-vs-Number-of-Threads-tp3272= 154p5717838.html > > > > Sent from the JMeter - User mailing list archive at Nabble.com. > > > > > > > > -------------------------------------------------------------------= -- > > > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > > > > For additional commands, e-mail: user-help@jmeter.apache.org > > > > > > > > > > > > > > --f46d0442694a00baf204e3e9cca0--