Discussion:
Jmeter sample count
praveen tiwari
2018-06-14 10:44:01 UTC
Permalink
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?
Antonio Gomes Rodrigues
2018-06-14 10:50:28 UTC
Permalink
Hi,

Why do you expect 900 samles?

In your Thread Group configuration you have Loop count : forever.
Post by praveen tiwari
Hi All,
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?
praveen tiwari
2018-06-14 10:56:28 UTC
Permalink
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?
Post by Antonio Gomes Rodrigues
Hi,
Why do you expect 900 samles?
In your Thread Group configuration you have Loop count : forever.
Post by praveen tiwari
Hi All,
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?
Deepak Goel
2018-06-14 11:12:08 UTC
Permalink
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?
Post by 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?
Post by Antonio Gomes Rodrigues
Hi,
Why do you expect 900 samles?
In your Thread Group configuration you have Loop count : forever.
Post by praveen tiwari
Hi All,
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
Post by Antonio Gomes Rodrigues
Post by praveen tiwari
sample count as #10452 .
Can anyone help me where I went wrong?
Ivan Rancati
2018-06-14 11:14:44 UTC
Permalink
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
Post by 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?
Deepak Goel
2018-06-14 11:15:31 UTC
Permalink
If you need only 900 samples, put 'loop count' as 900 instead of Forever
Post by 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?
Post by Antonio Gomes Rodrigues
Hi,
Why do you expect 900 samles?
In your Thread Group configuration you have Loop count : forever.
Post by praveen tiwari
Hi All,
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
Post by Antonio Gomes Rodrigues
Post by praveen tiwari
sample count as #10452 .
Can anyone help me where I went wrong?
g***@live.com
2018-06-18 04:11:14 UTC
Permalink
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: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
praveen tiwari
2018-07-26 04:58:08 UTC
Permalink
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...
Post by g***@live.com
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
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
---------------------------------------------------------------------
Loading...