Jmeter sample count

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Jmeter sample count

praveen tiwari
Hi All,

I tried running a jmeter script with below configuration:

Thread count: 1
Rampup : 1
Loop count : forever.

Scheduler : duration - 900 seconds.
Startup delay: 2 seconds.

No. of requests : 1

Expected no. of samples in aggregate graph to be #900 , but it's showing
sample count as #10452 .

Can anyone help me where I went wrong?
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter sample count

ra0077
Hi,

Why do you expect 900 samles?

In your Thread Group configuration you have  Loop count : forever.





2018-06-14 12:44 GMT+02:00 praveen tiwari <[hidden email]>:

> Hi All,
>
> I tried running a jmeter script with below configuration:
>
> Thread count: 1
> Rampup : 1
> Loop count : forever.
>
> Scheduler : duration - 900 seconds.
> Startup delay: 2 seconds.
>
> No. of requests : 1
>
> Expected no. of samples in aggregate graph to be #900 , but it's showing
> sample count as #10452 .
>
> Can anyone help me where I went wrong?
>
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter sample count

praveen tiwari
Hi,

As per my configuration, I am sending 1 request in 1 second for 900 seconds.
So it should be 900 samples.

Please help me in understanding the relation of samples and the setup I
have done.

If I need only 900 samples, what should be changed in configuration?

On Thu 14 Jun, 2018 4:20 pm Antonio Gomes Rodrigues, <[hidden email]>
wrote:

> Hi,
>
> Why do you expect 900 samles?
>
> In your Thread Group configuration you have  Loop count : forever.
>
>
>
>
>
> 2018-06-14 12:44 GMT+02:00 praveen tiwari <[hidden email]>:
>
> > Hi All,
> >
> > I tried running a jmeter script with below configuration:
> >
> > Thread count: 1
> > Rampup : 1
> > Loop count : forever.
> >
> > Scheduler : duration - 900 seconds.
> > Startup delay: 2 seconds.
> >
> > No. of requests : 1
> >
> > Expected no. of samples in aggregate graph to be #900 , but it's showing
> > sample count as #10452 .
> >
> > Can anyone help me where I went wrong?
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter sample count

deicool
The number of samples would depend on Response-Time.

If the Response-Time is in msec, the number of samples would be more than
900.

This is guided by "Little's Law".

Is your Response-Time around 90msec?

On Thu, 14 Jun 2018, 16:26 praveen tiwari, <[hidden email]> wrote:

> Hi,
>
> As per my configuration, I am sending 1 request in 1 second for 900
> seconds.
> So it should be 900 samples.
>
> Please help me in understanding the relation of samples and the setup I
> have done.
>
> If I need only 900 samples, what should be changed in configuration?
>
> On Thu 14 Jun, 2018 4:20 pm Antonio Gomes Rodrigues, <[hidden email]>
> wrote:
>
> > Hi,
> >
> > Why do you expect 900 samles?
> >
> > In your Thread Group configuration you have  Loop count : forever.
> >
> >
> >
> >
> >
> > 2018-06-14 12:44 GMT+02:00 praveen tiwari <[hidden email]>:
> >
> > > Hi All,
> > >
> > > I tried running a jmeter script with below configuration:
> > >
> > > Thread count: 1
> > > Rampup : 1
> > > Loop count : forever.
> > >
> > > Scheduler : duration - 900 seconds.
> > > Startup delay: 2 seconds.
> > >
> > > No. of requests : 1
> > >
> > > Expected no. of samples in aggregate graph to be #900 , but it's
> showing
> > > sample count as #10452 .
> > >
> > > Can anyone help me where I went wrong?
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter sample count

Ivan Rancati-3
In reply to this post by praveen tiwari
If you want to send 1 request per second, try a
Constant Throughput Timer
https://jmeter.apache.org/usermanual/component_reference.html#timers

br,
Ivan

On Thu, Jun 14, 2018 at 12:56 PM praveen tiwari <[hidden email]>
wrote:

> Hi,
>
> As per my configuration, I am sending 1 request in 1 second for 900
> seconds.
> So it should be 900 samples.
>
> Please help me in understanding the relation of samples and the setup I
> have done.
>
> If I need only 900 samples, what should be changed in configuration?
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter sample count

deicool
In reply to this post by praveen tiwari
If you need only 900 samples, put 'loop count' as 900 instead of Forever

On Thu, 14 Jun 2018, 16:26 praveen tiwari, <[hidden email]> wrote:

> Hi,
>
> As per my configuration, I am sending 1 request in 1 second for 900
> seconds.
> So it should be 900 samples.
>
> Please help me in understanding the relation of samples and the setup I
> have done.
>
> If I need only 900 samples, what should be changed in configuration?
>
> On Thu 14 Jun, 2018 4:20 pm Antonio Gomes Rodrigues, <[hidden email]>
> wrote:
>
> > Hi,
> >
> > Why do you expect 900 samles?
> >
> > In your Thread Group configuration you have  Loop count : forever.
> >
> >
> >
> >
> >
> > 2018-06-14 12:44 GMT+02:00 praveen tiwari <[hidden email]>:
> >
> > > Hi All,
> > >
> > > I tried running a jmeter script with below configuration:
> > >
> > > Thread count: 1
> > > Rampup : 1
> > > Loop count : forever.
> > >
> > > Scheduler : duration - 900 seconds.
> > > Startup delay: 2 seconds.
> > >
> > > No. of requests : 1
> > >
> > > Expected no. of samples in aggregate graph to be #900 , but it's
> showing
> > > sample count as #10452 .
> > >
> > > Can anyone help me where I went wrong?
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter sample count

glinius@live.com
In reply to this post by praveen tiwari
You are *not* sending 1 request per 1 second, JMeter tries to send requests
as fast as it can for 15 minutes and the number of threads will vary
depending on the response time.

The only way of getting exactly 900 hits in your setup is placing your
request under a  Throughput Controller
<http://jmeter.apache.org/usermanual/component_reference.html#Throughput_Controller>
, choose "Total Executions" mode and set "Throughput" to 900.

If you additionally want to limit JMeter's throughput to 1 request per
second you can achieve this in 2 ways:

 1. Using  Constant Throughput Timer
<http://jmeter.apache.org/usermanual/component_reference.html#Constant_Throughput_Timer>  
and configure it to send 60 samples per minute

 2. Using  Throughput Shaping Timer
<https://jmeter-plugins.org/wiki/ThroughputShapingTimer/>   which is more
advanced and under some conditions precise version of the Constant
Throughput Timer using Start and End RPS as 1 and 900 seconds as duration.
You can install Throughput Shaping Timer using  JMeter Plugins Manager
<https://www.blazemeter.com/blog/how-install-jmeter-plugins-manager>  



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

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

Reply | Threaded
Open this post in threaded view
|

Re: Jmeter sample count

praveen tiwari
And what will be no. Of threads...now the scenario is that I need to do
endurance testing for 4 hours..and send 1 request per second...



On Mon 18 Jun, 2018 9:41 am [hidden email], <[hidden email]> wrote:

> You are *not* sending 1 request per 1 second, JMeter tries to send requests
> as fast as it can for 15 minutes and the number of threads will vary
> depending on the response time.
>
> The only way of getting exactly 900 hits in your setup is placing your
> request under a  Throughput Controller
> <
> http://jmeter.apache.org/usermanual/component_reference.html#Throughput_Controller>
>
> , choose "Total Executions" mode and set "Throughput" to 900.
>
> If you additionally want to limit JMeter's throughput to 1 request per
> second you can achieve this in 2 ways:
>
>  1. Using  Constant Throughput Timer
> <
> http://jmeter.apache.org/usermanual/component_reference.html#Constant_Throughput_Timer>
>
> and configure it to send 60 samples per minute
>
>  2. Using  Throughput Shaping Timer
> <https://jmeter-plugins.org/wiki/ThroughputShapingTimer/>   which is more
> advanced and under some conditions precise version of the Constant
> Throughput Timer using Start and End RPS as 1 and 900 seconds as duration.
> You can install Throughput Shaping Timer using  JMeter Plugins Manager
> <https://www.blazemeter.com/blog/how-install-jmeter-plugins-manager>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>