jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject Re: How to generate a load of Y number of users using only X number of actual login accounts? (Where X<Y)
Date Wed, 20 May 2009 16:40:38 GMT
As Deepak wrote, you are not really testing the server under the
correct conditions.

To test a server properly, you need to simulate both the number of
concurrent (active) sessions as well as the typical page request rate.

So, first you need to establish what load you want to generate: what
is the maximum number of concurrent sessions, what is a typical usage
scenario and what is the page request rate.

Each concurrent session needs a separate thread.
Each thread should include a typical usage scenario including pauses.

If you really want to test 500 concurrent sessions, then you will need
to use 500 threads.

However, if you want to test 500 sessions over the period of an hour,
then use as many threads as there will be concurrent sessions, and run
multiple loops of each thread, so as one session ends, another will be

Of course if you just want to see how the server reacts to the request
load, regardless of the session load, then you can make do with fewer
threads, and you can increase the request rate by reducing the wait

If the server fails to handle the desired load with only a single
session, then you have a problem.

If the server handles the load with a single session, then you still
need to test with the desired session load.

On 20/05/2009, Nguyen Dao <> wrote:
> Hi everyone,
>  (1) The application I am testing is session-sensitive; I can not log in the
>  second time using the same user as the first time without expiring the first
>  time's session.
>  (2) I want to simulate a workload of 500 users but do not want to create 500
>  actual test login accounts.
>  (3) I am currently using the "CSV Data Set Config" for obtaining login
>  account for each thread.
>  (4) I am also using the "Regular Expression Extractor" to extract the
>  jsessionid from the URL for subsequent request.
>  **
>  (1) How can I set up my test plan to login only once under a ThreadGroup,
>  and share the session with all threads?  I have attempted to use the "Once
>  Only Controller" to include the login request, but results shows that JMeter
>  sends it for every thread.  In other words, the scope of "Once Only
>  Controller" seems to be within the Thread, rather than the ThreadGroup.  Or
>  perhaps, I am doing something wrong.
>  (2)  If possible, can you provide a high level skeleton for the test plan?
>  For example:
>  ThreadGroup
>  -- Once Only Controller
>  ----Login Requests
>  ...
>  ...
>  etc.
>  Thank you,
>  Nguyen

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message