You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Indraneel Chowdhury <in...@yahoo.com> on 2007/08/09 21:57:22 UTC
Constant Number of Threads in a Stress Test
Hi,
I want to stress test a web-application. I am running the test in a loop for about an hour. The test is such that each virtual user logs in, goes to a particular page, etc etc. and then logs out.
However since more and more virtual users log in as I’m running the test on a loop, there is a tremendous build up of virtual users that are sending requests. This is undesirable.
I have tried using a sync timer before the “logout” request. However if one of the threads fail in the middle, the sync timer keeps on waiting for it and the test completes with only one loop.
I want to control the number of threads (not at runtime, in my test plan logic) such that there are always a fixed number of virtual users who are sending requests to the server. Even if I can control it to the point where I know that at any point of time, the number of virtual users who are sending requests to the server are between X and Y, I’m done. Is this somehow possible in JMeter? Would using a Constant Throughput Timer help in any way?
Thanks
Indraneel
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC
Re: Constant Number of Threads in a Stress Test
Posted by sebb <se...@gmail.com>.
On 10/08/07, Indraneel Chowdhury <in...@globallogic.com> wrote:
> The test is:
>
> 1. Login
> 2. Do some thing
> 3. Do some thing else
> 4. Logout
>
> So as I understand from what you said that after one thread executes all
> the samples in one loop, it (the same thread) starts over again (second
> loop) and executes all the samples, and starts over again (third loop)
> .... and so on. Have I understood correctly?
Yes.
> We are calculating the number of active threads by processing the
> results. We sort the results by timestamp. We keep a counter which we
> increment when we see a "login" request and decrement it when we find a
> "logout" request. When we are running the test for 30 mins we found that
> the maximum number that the counter reached was 999. And hence the
> conclusion. In fact we have seen that the target server shows way too
> much processor load with just 100 users.
That could a problem in the server.
> When we run just 1 loop - the
> processor load is very low.
> Is there something that we are doing wrong.
Are you sure that you are counting the logins and logouts correctly?
Is the total number of logouts the same as the total number of logins?
Is the total number of samples correct?
> Thanks for all your help.
> Indraneel
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, August 10, 2007 2:03 PM
> To: JMeter Users List
> Subject: Re: Constant Number of Threads in a Stress Test
>
> No, the thread group only runs as many threads as you specify initially.
>
> Each thread will execute all the samples in all the loops and then
> exit when all the loops have been exhausted or the time limit has been
> reached.
>
> The number of threads is shown in the top right-hand corner of the GUI:
>
> active/total
>
> How are you measuring the number of active threads?
>
> On 10/08/07, Indraneel Chowdhury <in...@globallogic.com>
> wrote:
> > Sorry for not making myself clear. It's true that a Thread Group with
> 10
> > threads will never run more than 10 threads at once. But when the test
> > is running for a duration, say 20 minutes, at first the Thread Group
> > runs 10 threads. Then when one of these 10 users have finished running
> > (sent all the requests), it will run another set of 10 threads, right?
> > Or at least that is what we are seeing happen. So there are now 9 + 10
> =
> > 19 threads which are running.
> >
> > Thanks
> > Indraneel
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Friday, August 10, 2007 1:41 PM
> > To: JMeter Users List
> > Subject: Re: Constant Number of Threads in a Stress Test
> >
> > The number of threads (users) is controlled by the Thread Group, and
> > is independent of the number of loops, whether these are defined by
> > the Thread Group or nested Loop controllers.
> >
> > A Thread Group with 10 threads (users) will never run more than 10
> > threads at once.
> >
> >
> > On 10/08/07, Indraneel Chowdhury <in...@globallogic.com>
> > wrote:
> > > Since I am running the test in loops (with the scheduler on the
> Thread
> > > Group or saying Loop Count=20, say, not with a loop controller),
> more
> > > threads (virtual users) get generated when one loop is complete. Say
> > > JMeter is executing the very first loop. After one of the threads
> > finish
> > > sending all the requests (in the test plan), the second loop starts
> > and
> > > more threads get generated. Is there a way I can control the
> > generation
> > > of new threads after somehow finding out how many of the threads are
> > > still sending requests?
> > >
> > > Thanks
> > > Indraneel
> > >
> > > -----Original Message-----
> > > From: sebb [mailto:sebbaz@gmail.com]
> > > Sent: Friday, August 10, 2007 1:07 PM
> > > To: JMeter Users List
> > > Subject: Re: Constant Number of Threads in a Stress Test
> > >
> > > JMeter does not currently allow the number of threads to be changed
> > > once a test has started, so I'm not sure I understand how more and
> > > more users are generated.
> > >
> > > The Constant Throughput Timer
> > >
> > >
> >
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Con
> > > stant_Throughput_Timer
> > >
> > > can be used to present a constant load to the server.
> > >
> > > On 09/08/07, Indraneel Chowdhury <in...@yahoo.com>
> > wrote:
> > > > Hi,
> > > >
> > > > I want to stress test a web-application. I am running the test in
> a
> > > loop for about an hour. The test is such that each virtual user logs
> > in,
> > > goes to a particular page, etc etc. and then logs out.
> > > > However since more and more virtual users log in as I'm running
> the
> > > test on a loop, there is a tremendous build up of virtual users that
> > are
> > > sending requests. This is undesirable.
> > > > I have tried using a sync timer before the "logout" request.
> However
> > > if one of the threads fail in the middle, the sync timer keeps on
> > > waiting for it and the test completes with only one loop.
> > > > I want to control the number of threads (not at runtime, in my
> test
> > > plan logic) such that there are always a fixed number of virtual
> users
> > > who are sending requests to the server. Even if I can control it to
> > the
> > > point where I know that at any point of time, the number of virtual
> > > users who are sending requests to the server are between X and Y,
> I'm
> > > done. Is this somehow possible in JMeter? Would using a Constant
> > > Throughput Timer help in any way?
> > > >
> > > > Thanks
> > > > Indraneel
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ________________________________________________________________________
> > > ____________
> > > > Take the Internet to Go: Yahoo!Go puts the Internet in your
> pocket:
> > > mail, news, photos & more.
> > > > http://mobile.yahoo.com/go?refer=1GNXIC
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: Constant Number of Threads in a Stress Test
Posted by Indraneel Chowdhury <in...@globallogic.com>.
The test is:
1. Login
2. Do some thing
3. Do some thing else
4. Logout
So as I understand from what you said that after one thread executes all
the samples in one loop, it (the same thread) starts over again (second
loop) and executes all the samples, and starts over again (third loop)
.... and so on. Have I understood correctly?
We are calculating the number of active threads by processing the
results. We sort the results by timestamp. We keep a counter which we
increment when we see a "login" request and decrement it when we find a
"logout" request. When we are running the test for 30 mins we found that
the maximum number that the counter reached was 999. And hence the
conclusion. In fact we have seen that the target server shows way too
much processor load with just 100 users. When we run just 1 loop - the
processor load is very low.
Is there something that we are doing wrong.
Thanks for all your help.
Indraneel
-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com]
Sent: Friday, August 10, 2007 2:03 PM
To: JMeter Users List
Subject: Re: Constant Number of Threads in a Stress Test
No, the thread group only runs as many threads as you specify initially.
Each thread will execute all the samples in all the loops and then
exit when all the loops have been exhausted or the time limit has been
reached.
The number of threads is shown in the top right-hand corner of the GUI:
active/total
How are you measuring the number of active threads?
On 10/08/07, Indraneel Chowdhury <in...@globallogic.com>
wrote:
> Sorry for not making myself clear. It's true that a Thread Group with
10
> threads will never run more than 10 threads at once. But when the test
> is running for a duration, say 20 minutes, at first the Thread Group
> runs 10 threads. Then when one of these 10 users have finished running
> (sent all the requests), it will run another set of 10 threads, right?
> Or at least that is what we are seeing happen. So there are now 9 + 10
=
> 19 threads which are running.
>
> Thanks
> Indraneel
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, August 10, 2007 1:41 PM
> To: JMeter Users List
> Subject: Re: Constant Number of Threads in a Stress Test
>
> The number of threads (users) is controlled by the Thread Group, and
> is independent of the number of loops, whether these are defined by
> the Thread Group or nested Loop controllers.
>
> A Thread Group with 10 threads (users) will never run more than 10
> threads at once.
>
>
> On 10/08/07, Indraneel Chowdhury <in...@globallogic.com>
> wrote:
> > Since I am running the test in loops (with the scheduler on the
Thread
> > Group or saying Loop Count=20, say, not with a loop controller),
more
> > threads (virtual users) get generated when one loop is complete. Say
> > JMeter is executing the very first loop. After one of the threads
> finish
> > sending all the requests (in the test plan), the second loop starts
> and
> > more threads get generated. Is there a way I can control the
> generation
> > of new threads after somehow finding out how many of the threads are
> > still sending requests?
> >
> > Thanks
> > Indraneel
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Friday, August 10, 2007 1:07 PM
> > To: JMeter Users List
> > Subject: Re: Constant Number of Threads in a Stress Test
> >
> > JMeter does not currently allow the number of threads to be changed
> > once a test has started, so I'm not sure I understand how more and
> > more users are generated.
> >
> > The Constant Throughput Timer
> >
> >
>
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Con
> > stant_Throughput_Timer
> >
> > can be used to present a constant load to the server.
> >
> > On 09/08/07, Indraneel Chowdhury <in...@yahoo.com>
> wrote:
> > > Hi,
> > >
> > > I want to stress test a web-application. I am running the test in
a
> > loop for about an hour. The test is such that each virtual user logs
> in,
> > goes to a particular page, etc etc. and then logs out.
> > > However since more and more virtual users log in as I'm running
the
> > test on a loop, there is a tremendous build up of virtual users that
> are
> > sending requests. This is undesirable.
> > > I have tried using a sync timer before the "logout" request.
However
> > if one of the threads fail in the middle, the sync timer keeps on
> > waiting for it and the test completes with only one loop.
> > > I want to control the number of threads (not at runtime, in my
test
> > plan logic) such that there are always a fixed number of virtual
users
> > who are sending requests to the server. Even if I can control it to
> the
> > point where I know that at any point of time, the number of virtual
> > users who are sending requests to the server are between X and Y,
I'm
> > done. Is this somehow possible in JMeter? Would using a Constant
> > Throughput Timer help in any way?
> > >
> > > Thanks
> > > Indraneel
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
________________________________________________________________________
> > ____________
> > > Take the Internet to Go: Yahoo!Go puts the Internet in your
pocket:
> > mail, news, photos & more.
> > > http://mobile.yahoo.com/go?refer=1GNXIC
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Constant Number of Threads in a Stress Test
Posted by sebb <se...@gmail.com>.
No, the thread group only runs as many threads as you specify initially.
Each thread will execute all the samples in all the loops and then
exit when all the loops have been exhausted or the time limit has been
reached.
The number of threads is shown in the top right-hand corner of the GUI:
active/total
How are you measuring the number of active threads?
On 10/08/07, Indraneel Chowdhury <in...@globallogic.com> wrote:
> Sorry for not making myself clear. It's true that a Thread Group with 10
> threads will never run more than 10 threads at once. But when the test
> is running for a duration, say 20 minutes, at first the Thread Group
> runs 10 threads. Then when one of these 10 users have finished running
> (sent all the requests), it will run another set of 10 threads, right?
> Or at least that is what we are seeing happen. So there are now 9 + 10 =
> 19 threads which are running.
>
> Thanks
> Indraneel
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, August 10, 2007 1:41 PM
> To: JMeter Users List
> Subject: Re: Constant Number of Threads in a Stress Test
>
> The number of threads (users) is controlled by the Thread Group, and
> is independent of the number of loops, whether these are defined by
> the Thread Group or nested Loop controllers.
>
> A Thread Group with 10 threads (users) will never run more than 10
> threads at once.
>
>
> On 10/08/07, Indraneel Chowdhury <in...@globallogic.com>
> wrote:
> > Since I am running the test in loops (with the scheduler on the Thread
> > Group or saying Loop Count=20, say, not with a loop controller), more
> > threads (virtual users) get generated when one loop is complete. Say
> > JMeter is executing the very first loop. After one of the threads
> finish
> > sending all the requests (in the test plan), the second loop starts
> and
> > more threads get generated. Is there a way I can control the
> generation
> > of new threads after somehow finding out how many of the threads are
> > still sending requests?
> >
> > Thanks
> > Indraneel
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Friday, August 10, 2007 1:07 PM
> > To: JMeter Users List
> > Subject: Re: Constant Number of Threads in a Stress Test
> >
> > JMeter does not currently allow the number of threads to be changed
> > once a test has started, so I'm not sure I understand how more and
> > more users are generated.
> >
> > The Constant Throughput Timer
> >
> >
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Con
> > stant_Throughput_Timer
> >
> > can be used to present a constant load to the server.
> >
> > On 09/08/07, Indraneel Chowdhury <in...@yahoo.com>
> wrote:
> > > Hi,
> > >
> > > I want to stress test a web-application. I am running the test in a
> > loop for about an hour. The test is such that each virtual user logs
> in,
> > goes to a particular page, etc etc. and then logs out.
> > > However since more and more virtual users log in as I'm running the
> > test on a loop, there is a tremendous build up of virtual users that
> are
> > sending requests. This is undesirable.
> > > I have tried using a sync timer before the "logout" request. However
> > if one of the threads fail in the middle, the sync timer keeps on
> > waiting for it and the test completes with only one loop.
> > > I want to control the number of threads (not at runtime, in my test
> > plan logic) such that there are always a fixed number of virtual users
> > who are sending requests to the server. Even if I can control it to
> the
> > point where I know that at any point of time, the number of virtual
> > users who are sending requests to the server are between X and Y, I'm
> > done. Is this somehow possible in JMeter? Would using a Constant
> > Throughput Timer help in any way?
> > >
> > > Thanks
> > > Indraneel
> > >
> > >
> > >
> > >
> > >
> > >
> >
> ________________________________________________________________________
> > ____________
> > > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket:
> > mail, news, photos & more.
> > > http://mobile.yahoo.com/go?refer=1GNXIC
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: Constant Number of Threads in a Stress Test
Posted by Indraneel Chowdhury <in...@globallogic.com>.
Sorry for not making myself clear. It's true that a Thread Group with 10
threads will never run more than 10 threads at once. But when the test
is running for a duration, say 20 minutes, at first the Thread Group
runs 10 threads. Then when one of these 10 users have finished running
(sent all the requests), it will run another set of 10 threads, right?
Or at least that is what we are seeing happen. So there are now 9 + 10 =
19 threads which are running.
Thanks
Indraneel
-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com]
Sent: Friday, August 10, 2007 1:41 PM
To: JMeter Users List
Subject: Re: Constant Number of Threads in a Stress Test
The number of threads (users) is controlled by the Thread Group, and
is independent of the number of loops, whether these are defined by
the Thread Group or nested Loop controllers.
A Thread Group with 10 threads (users) will never run more than 10
threads at once.
On 10/08/07, Indraneel Chowdhury <in...@globallogic.com>
wrote:
> Since I am running the test in loops (with the scheduler on the Thread
> Group or saying Loop Count=20, say, not with a loop controller), more
> threads (virtual users) get generated when one loop is complete. Say
> JMeter is executing the very first loop. After one of the threads
finish
> sending all the requests (in the test plan), the second loop starts
and
> more threads get generated. Is there a way I can control the
generation
> of new threads after somehow finding out how many of the threads are
> still sending requests?
>
> Thanks
> Indraneel
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, August 10, 2007 1:07 PM
> To: JMeter Users List
> Subject: Re: Constant Number of Threads in a Stress Test
>
> JMeter does not currently allow the number of threads to be changed
> once a test has started, so I'm not sure I understand how more and
> more users are generated.
>
> The Constant Throughput Timer
>
>
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Con
> stant_Throughput_Timer
>
> can be used to present a constant load to the server.
>
> On 09/08/07, Indraneel Chowdhury <in...@yahoo.com>
wrote:
> > Hi,
> >
> > I want to stress test a web-application. I am running the test in a
> loop for about an hour. The test is such that each virtual user logs
in,
> goes to a particular page, etc etc. and then logs out.
> > However since more and more virtual users log in as I'm running the
> test on a loop, there is a tremendous build up of virtual users that
are
> sending requests. This is undesirable.
> > I have tried using a sync timer before the "logout" request. However
> if one of the threads fail in the middle, the sync timer keeps on
> waiting for it and the test completes with only one loop.
> > I want to control the number of threads (not at runtime, in my test
> plan logic) such that there are always a fixed number of virtual users
> who are sending requests to the server. Even if I can control it to
the
> point where I know that at any point of time, the number of virtual
> users who are sending requests to the server are between X and Y, I'm
> done. Is this somehow possible in JMeter? Would using a Constant
> Throughput Timer help in any way?
> >
> > Thanks
> > Indraneel
> >
> >
> >
> >
> >
> >
>
________________________________________________________________________
> ____________
> > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket:
> mail, news, photos & more.
> > http://mobile.yahoo.com/go?refer=1GNXIC
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Constant Number of Threads in a Stress Test
Posted by sebb <se...@gmail.com>.
The number of threads (users) is controlled by the Thread Group, and
is independent of the number of loops, whether these are defined by
the Thread Group or nested Loop controllers.
A Thread Group with 10 threads (users) will never run more than 10
threads at once.
On 10/08/07, Indraneel Chowdhury <in...@globallogic.com> wrote:
> Since I am running the test in loops (with the scheduler on the Thread
> Group or saying Loop Count=20, say, not with a loop controller), more
> threads (virtual users) get generated when one loop is complete. Say
> JMeter is executing the very first loop. After one of the threads finish
> sending all the requests (in the test plan), the second loop starts and
> more threads get generated. Is there a way I can control the generation
> of new threads after somehow finding out how many of the threads are
> still sending requests?
>
> Thanks
> Indraneel
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, August 10, 2007 1:07 PM
> To: JMeter Users List
> Subject: Re: Constant Number of Threads in a Stress Test
>
> JMeter does not currently allow the number of threads to be changed
> once a test has started, so I'm not sure I understand how more and
> more users are generated.
>
> The Constant Throughput Timer
>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Con
> stant_Throughput_Timer
>
> can be used to present a constant load to the server.
>
> On 09/08/07, Indraneel Chowdhury <in...@yahoo.com> wrote:
> > Hi,
> >
> > I want to stress test a web-application. I am running the test in a
> loop for about an hour. The test is such that each virtual user logs in,
> goes to a particular page, etc etc. and then logs out.
> > However since more and more virtual users log in as I'm running the
> test on a loop, there is a tremendous build up of virtual users that are
> sending requests. This is undesirable.
> > I have tried using a sync timer before the "logout" request. However
> if one of the threads fail in the middle, the sync timer keeps on
> waiting for it and the test completes with only one loop.
> > I want to control the number of threads (not at runtime, in my test
> plan logic) such that there are always a fixed number of virtual users
> who are sending requests to the server. Even if I can control it to the
> point where I know that at any point of time, the number of virtual
> users who are sending requests to the server are between X and Y, I'm
> done. Is this somehow possible in JMeter? Would using a Constant
> Throughput Timer help in any way?
> >
> > Thanks
> > Indraneel
> >
> >
> >
> >
> >
> >
> ________________________________________________________________________
> ____________
> > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket:
> mail, news, photos & more.
> > http://mobile.yahoo.com/go?refer=1GNXIC
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: Constant Number of Threads in a Stress Test
Posted by Indraneel Chowdhury <in...@globallogic.com>.
Since I am running the test in loops (with the scheduler on the Thread
Group or saying Loop Count=20, say, not with a loop controller), more
threads (virtual users) get generated when one loop is complete. Say
JMeter is executing the very first loop. After one of the threads finish
sending all the requests (in the test plan), the second loop starts and
more threads get generated. Is there a way I can control the generation
of new threads after somehow finding out how many of the threads are
still sending requests?
Thanks
Indraneel
-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com]
Sent: Friday, August 10, 2007 1:07 PM
To: JMeter Users List
Subject: Re: Constant Number of Threads in a Stress Test
JMeter does not currently allow the number of threads to be changed
once a test has started, so I'm not sure I understand how more and
more users are generated.
The Constant Throughput Timer
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Con
stant_Throughput_Timer
can be used to present a constant load to the server.
On 09/08/07, Indraneel Chowdhury <in...@yahoo.com> wrote:
> Hi,
>
> I want to stress test a web-application. I am running the test in a
loop for about an hour. The test is such that each virtual user logs in,
goes to a particular page, etc etc. and then logs out.
> However since more and more virtual users log in as I'm running the
test on a loop, there is a tremendous build up of virtual users that are
sending requests. This is undesirable.
> I have tried using a sync timer before the "logout" request. However
if one of the threads fail in the middle, the sync timer keeps on
waiting for it and the test completes with only one loop.
> I want to control the number of threads (not at runtime, in my test
plan logic) such that there are always a fixed number of virtual users
who are sending requests to the server. Even if I can control it to the
point where I know that at any point of time, the number of virtual
users who are sending requests to the server are between X and Y, I'm
done. Is this somehow possible in JMeter? Would using a Constant
Throughput Timer help in any way?
>
> Thanks
> Indraneel
>
>
>
>
>
>
________________________________________________________________________
____________
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket:
mail, news, photos & more.
> http://mobile.yahoo.com/go?refer=1GNXIC
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Constant Number of Threads in a Stress Test
Posted by sebb <se...@gmail.com>.
JMeter does not currently allow the number of threads to be changed
once a test has started, so I'm not sure I understand how more and
more users are generated.
The Constant Throughput Timer
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Constant_Throughput_Timer
can be used to present a constant load to the server.
On 09/08/07, Indraneel Chowdhury <in...@yahoo.com> wrote:
> Hi,
>
> I want to stress test a web-application. I am running the test in a loop for about an hour. The test is such that each virtual user logs in, goes to a particular page, etc etc. and then logs out.
> However since more and more virtual users log in as I'm running the test on a loop, there is a tremendous build up of virtual users that are sending requests. This is undesirable.
> I have tried using a sync timer before the "logout" request. However if one of the threads fail in the middle, the sync timer keeps on waiting for it and the test completes with only one loop.
> I want to control the number of threads (not at runtime, in my test plan logic) such that there are always a fixed number of virtual users who are sending requests to the server. Even if I can control it to the point where I know that at any point of time, the number of virtual users who are sending requests to the server are between X and Y, I'm done. Is this somehow possible in JMeter? Would using a Constant Throughput Timer help in any way?
>
> Thanks
> Indraneel
>
>
>
>
>
> ____________________________________________________________________________________
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
> http://mobile.yahoo.com/go?refer=1GNXIC
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org