Controlling pacing in the traditional load testing sense is not obvious or easy 
in Jmeter.

You can achieve a simple level of pacing by placing a Constant Throughput Timer 
in your thread group before your requests. This throughput timer unfortunately 
is measured in "transactions per minute" which is not intuitive at all (usually 
we talk about transactions/hour). This will make the total time for each 
iteration of the script match a certain desired throughput.

The problem is that this isn't very realistic because it will execute exactly 
every x seconds during the test creating an absolute uniform distribution of 
load. What you need is some randomisation added to it. What I use is:

- Dummy Test Action (I call it "Pacing") to hold the two objects below:
- - Constant Throughput Timer
- - Uniform Random Timer

The way Jmeter works is that the Uniform Random Timer will calculated in 
conjunction with the Constant Throughput Timer to provide you a randomised 
throughput around a certain desired goal.

If the throughput you're seeing isn't what you expect check:
- Is you think time too high? Or more generally, if you want a script to 
execute once a minute but it takes 3 minutes to complete, you're not going to 
achieve your desired throughput.

If you could provide a screenshot of one of your scripts along with details of 
your think-time and how you're trying to achieve the pacing I could tell you 
exactly what you need to do.

________________________________________
From: Deepak Shetty <[email protected]>
Sent: Friday, 16 May 2014 7:16 a.m.
To: JMeter Users List
Subject: Re: Regarding scheduler in Jmeter

Since you are using plugins , thats a question for the plugins mailing list
, not the jmeter one
Since you say you want constant throughput start rps = end rps = number of
requests you want per second
duration is same as your test run right? (also i believe you needed to use
the plugin threadgroup , not the jmeter one for this timer)


What you want can be accomplished in JMeter though
ThreadGroup (Duration = 30 minutes , Number of users is a value high enough
to generate the through put you need with some safety built in for long
response times, must be estimated based on your max allowed response time ,
loop count = forever)
+Constant throughput timer
+Request





On Wed, May 7, 2014 at 2:24 AM, Ginny Dhawan <[email protected]>wrote:

> Thanks Deepak for your help .
>
> Now , My script is running fine for 30 minutes but still i didnot achive
> my target i.e constant throughput..
>
> Target : The test will need to maintain a constant throughput of 20 users
> for 30 mins.
>
> I tried to use the Throughput shaping timer
>
> http://jmeter-plugins.org/wiki/ThroughputShapingTimer/?utm_source=jmeter&utm_medium=helplink&utm_campaign=ThroughputShapingTimer
>
>  but i didnt get the relevant response.I think i am doing some wrong in
> this....Could you please elaborate which  values  i have to put for Start
> RPS and End RPS and Durations .
>
> How many rows i have to put for the same in shaping timer.
>
> M sorry i have asked so many questions to you ..
>
> Seriously , your help is appreciated.
>
> Thanks.
>
>
>
>
> ________________________________________
> From: Deepak Shetty [[email protected]]
> Sent: Tuesday, May 06, 2014 11:08 PM
> To: JMeter Users List
> Subject: Re: Regarding scheduler in Jmeter
>
> Your throughput controller is stating total executions 20 - so it will run
> twenty times  and terminate after that - what are you trying to do?
> usually you mean to use the constant throughput timer , not throughput
> controller - please read jmeter manual -
>
> http://jmeter.apache.org/usermanual/component_reference.html#Throughput_Controller
>
>
> On Tue, May 6, 2014 at 3:41 AM, Ginny Dhawan <[email protected]
> >wrote:
>
> >
> > Thanks Deepak ,
> >
> > As suggested , I tried all the Option but still no luck ..
> >
> > Note : Heap Size is also increased
> >
> > Test Plan
> >  -Synchronize timer;20
> >   Thread Group  (Thread:20 , Rampup:1 , LoopCount: Forever)
> >       ThroughputController ( Total Execution , Per user checkbox is
> > checked & throughput 20)
> >           -Sample 1
> >           -Sample 2
> >           -Sample 3
> >           -Sample 4
> > Listerners
> >
> > ...Please Advise ..Its URGENT.
> >
> >
> >
> > ________________________________________
> > From: Deepak Shetty [[email protected]]
> > Sent: Monday, May 05, 2014 8:10 PM
> > To: JMeter Users List
> > Subject: Re: Regarding scheduler in Jmeter
> >
> > Hi
> > Im assuming you have used the scheduler/duration setting ? That will work
> > as long as your test itself runs for more than 30 minutes. Whats your
> loop
> > count set in JMeter threadgroup? if its a fixed number then JMeter will
> > stop when thats complete - you probably want to say forever if you want
> > duration to control how long your test runs(assuming you are fine with
> > running the same test repeatedly).
> > Note there are other settings that may also cause your test to terminate
> > (e.g. setting stop thread on EOF on a CSV data set config or Stop thread
> on
> > error on the Thread group)
> > if neither of these then you might want to check jmeter.log for out of
> > memory errors etc.
> >
> >
> >
> > On Mon, May 5, 2014 at 5:30 AM, Ginny Dhawan <[email protected]
> > >wrote:
> >
> > > Hello Everyone ,
> > >
> > >
> > >
> > > Could anyone  help me out for the below issue.
> > >
> > >
> > >
> > > I have to run the script for 30 mins  in jmeter ..  M using the
> scheduler
> > > but it stops before completing the 30 mintues..  Maximum it ran the
> > scripts
> > > for 12-15 mins not more than this.
> > >
> > >
> > >
> > > I used the runtime controller but no luck ..
> > >
> > >
> > >
> > >
> > >
> > > Prompt Response would be highly appreciated.
> > >
> > >
> > >
> > > If any information required please let me know.
> > >
> > >
> > >
> > >
> > >
> > > Best Regards,
> > >
> > > Jmeter User
> > >
> > >
> > >
> > >
> > >
> > >
> > > DISCLAIMER
> > >
> > > The information transmitted, including any attachments, is intended
> only
> > > for the person or entity to which it is addressed and may contain
> > > confidential and/or privileged material. Any form of reproduction,
> > > dissemination, copying, disclosure, modification, distribution and / or
> > > publication of this message without the prior written consent of the
> > author
> > > of this e-mail is strictly prohibited. If you receive this email by
> > > mistake, please advise the sender and delete it immediately. Email
> > > transmission cannot be guaranteed to be secure, or error free as
> > > information could be intercepted, corrupted, lost or destroyed as a
> > result
> > > of the transmission process. Views or opinions presented in this email
> > are
> > > solely those of the author and do not necessarily represent those of
> the
> > > company. Please be aware that the Company monitors email communications
> > > through our networks for regulatory compliance purposes. NIIT
> > Technologies
> > > Limited and its related entities consider the privacy of its clients to
> > be
> > > of utmost importance and works to protect it. The Privacy Policy of the
> > > Company can be accessed from our website “www.niit-tech.com. (s).
> > >
> >
> >
> >
> >
> >
> >
> > DISCLAIMER
> >
> > The information transmitted, including any attachments, is intended only
> > for the person or entity to which it is addressed and may contain
> > confidential and/or privileged material. Any form of reproduction,
> > dissemination, copying, disclosure, modification, distribution and / or
> > publication of this message without the prior written consent of the
> author
> > of this e-mail is strictly prohibited. If you receive this email by
> > mistake, please advise the sender and delete it immediately. Email
> > transmission cannot be guaranteed to be secure, or error free as
> > information could be intercepted, corrupted, lost or destroyed as a
> result
> > of the transmission process. Views or opinions presented in this email
> are
> > solely those of the author and do not necessarily represent those of the
> > company. Please be aware that the Company monitors email communications
> > through our networks for regulatory compliance purposes. NIIT
> Technologies
> > Limited and its related entities consider the privacy of its clients to
> be
> > of utmost importance and works to protect it. The Privacy Policy of the
> > Company can be accessed from our website “www.niit-tech.com. (s).
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
>
>
>
>
> DISCLAIMER
>
> The information transmitted, including any attachments, is intended only
> for the person or entity to which it is addressed and may contain
> confidential and/or privileged material. Any form of reproduction,
> dissemination, copying, disclosure, modification, distribution and / or
> publication of this message without the prior written consent of the author
> of this e-mail is strictly prohibited. If you receive this email by
> mistake, please advise the sender and delete it immediately. Email
> transmission cannot be guaranteed to be secure, or error free as
> information could be intercepted, corrupted, lost or destroyed as a result
> of the transmission process. Views or opinions presented in this email are
> solely those of the author and do not necessarily represent those of the
> company. Please be aware that the Company monitors email communications
> through our networks for regulatory compliance purposes. NIIT Technologies
> Limited and its related entities consider the privacy of its clients to be
> of utmost importance and works to protect it. The Privacy Policy of the
> Company can be accessed from our website “www.niit-tech.com. (s).
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to