You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by mke jira <mk...@gmail.com> on 2011/07/17 18:29:06 UTC

sessions in JMeter

Hi

I have a web application which logs in users using windows authentication. I
have the application as trusted site and manually whenever I go to the page
I am logged in because I am already windows authenticated.

When I record the application and run the script using 1 user and observing
in tree view everything plays back fine.
I tried with 5 users and looks like my script plays back fine.

Questions:
When each Jmeter thread runs does it open a new session with application, or
uses existing session?

Please let me know.

Thanks
Kumar

Re: sessions in JMeter

Posted by Adrian Speteanu <as...@gmail.com>.
Hello,

You question obviously depends on the application container, like tomcat,
for java applications. Session management is usually done with whatever
service the app container provides and/or with some other application
providing "extra features", like central authentication. You can either ask
the developers, or experiment yourself by looking at the cookies each user
generates.

As best practice for testing, you should check out if the application has a
manual login (bypass the automatic login, or something) and test with actual
different users in load tests. This is not strictly necessary, but
recommended. If you set up a cookie manager in JMeter, you'll have different
sessions for all your threads. If you didn't use it, most probably the
application had a different session for each and every one of your requests
- which is very unrealistic and stressful to the server under test.

Adrian S

On Sun, Jul 17, 2011 at 7:29 PM, mke jira <mk...@gmail.com> wrote:

> Hi
>
> I have a web application which logs in users using windows authentication.
> I
> have the application as trusted site and manually whenever I go to the page
> I am logged in because I am already windows authenticated.
>
> When I record the application and run the script using 1 user and observing
> in tree view everything plays back fine.
> I tried with 5 users and looks like my script plays back fine.
>
> Questions:
> When each Jmeter thread runs does it open a new session with application,
> or
> uses existing session?
>
> Please let me know.
>
> Thanks
> Kumar
>