How to handle Concurrent sessions for single user id in Jmeter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to handle Concurrent sessions for single user id in Jmeter

Harshal Kulkarni
Hello Team,

I am working on load testing of one application using Jmeter 5.1.1.
Unfortunately, client can not provide multiple test user IDs, so we have
only 3 test user IDs. I want to load test with 50 concurrent users load.
Application allows concurrent sessions from single user on browser and I
can login with single user id on multiple machine and browser at same time.
But when I am trying to use single user id for multiple threads, in jmeter
response I see that "session already active" message for 2nd and onwards
threads. Only first thread able to login.
I ha e used HTTP cache and cookie manager to clear cache.
I tried to set different config from HTTP Cookie manager, but seeing same
error.
Could someone help me how I need to handle this?

Thanks in advanced!


Harshal
Reply | Threaded
Open this post in threaded view
|

Re: How to handle Concurrent sessions for single user id in Jmeter

Tong Sun
On Mon, Feb 22, 2021 at 5:31 AM Harshal Kulkarni
<[hidden email]> wrote:
>
> Hello Team,
>
> I am working on load testing of one application using Jmeter 5.1.1.
> Unfortunately, client can not provide multiple test user IDs, so we have
> only 3 test user IDs. I want to load test with 50 concurrent users load.
> Application allows concurrent sessions from single user on browser and I
> can login with single user id on multiple machine and browser at same time.

Can you login with single user id on the same machine and same browser
(different session) at same time?

> But when I am trying to use single user id for multiple threads, in jmeter
> response I see that "session already active" message for 2nd and onwards
> threads. Only first thread able to login.

Are you using distributed jmeter testing now?

> I ha e used HTTP cache and cookie manager to clear cache.
> I tried to set different config from HTTP Cookie manager, but seeing same
> error.
> Could someone help me how I need to handle this?
>
> Thanks in advanced!
>
>
> Harshal

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

Reply | Threaded
Open this post in threaded view
|

Re: How to handle Concurrent sessions for single user id in Jmeter

Harshal Kulkarni
Yes, I can able to login on same machine and same browser simultaneously.

On Mon, 22 Feb, 2021, 6:57 pm Tong Sun, <[hidden email]> wrote:

> On Mon, Feb 22, 2021 at 5:31 AM Harshal Kulkarni
> <[hidden email]> wrote:
> >
> > Hello Team,
> >
> > I am working on load testing of one application using Jmeter 5.1.1.
> > Unfortunately, client can not provide multiple test user IDs, so we have
> > only 3 test user IDs. I want to load test with 50 concurrent users load.
> > Application allows concurrent sessions from single user on browser and I
> > can login with single user id on multiple machine and browser at same
> time.
>
> Can you login with single user id on the same machine and same browser
> (different session) at same time?
>
> > But when I am trying to use single user id for multiple threads, in
> jmeter
> > response I see that "session already active" message for 2nd and onwards
> > threads. Only first thread able to login.
>
> Are you using distributed jmeter testing now?
>
> > I ha e used HTTP cache and cookie manager to clear cache.
> > I tried to set different config from HTTP Cookie manager, but seeing same
> > error.
> > Could someone help me how I need to handle this?
> >
> > Thanks in advanced!
> >
> >
> > Harshal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to handle Concurrent sessions for single user id in Jmeter

Harshal Kulkarni
Can anyone suggest me here? I am still struggling with this issue.


Thanks,
Harshal

On Tue, 23 Feb, 2021, 6:41 am Harshal Kulkarni, <[hidden email]>
wrote:

> Yes, I can able to login on same machine and same browser simultaneously.
>
> On Mon, 22 Feb, 2021, 6:57 pm Tong Sun, <[hidden email]> wrote:
>
>> On Mon, Feb 22, 2021 at 5:31 AM Harshal Kulkarni
>> <[hidden email]> wrote:
>> >
>> > Hello Team,
>> >
>> > I am working on load testing of one application using Jmeter 5.1.1.
>> > Unfortunately, client can not provide multiple test user IDs, so we have
>> > only 3 test user IDs. I want to load test with 50 concurrent users load.
>> > Application allows concurrent sessions from single user on browser and I
>> > can login with single user id on multiple machine and browser at same
>> time.
>>
>> Can you login with single user id on the same machine and same browser
>> (different session) at same time?
>>
>> > But when I am trying to use single user id for multiple threads, in
>> jmeter
>> > response I see that "session already active" message for 2nd and onwards
>> > threads. Only first thread able to login.
>>
>> Are you using distributed jmeter testing now?
>>
>> > I ha e used HTTP cache and cookie manager to clear cache.
>> > I tried to set different config from HTTP Cookie manager, but seeing
>> same
>> > error.
>> > Could someone help me how I need to handle this?
>> >
>> > Thanks in advanced!
>> >
>> >
>> > Harshal
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: How to handle Concurrent sessions for single user id in Jmeter

Tong Sun
In reply to this post by Harshal Kulkarni
So you can login with single user id on the same machine (different
session) at same time using browser, but not jmeter, right?

Have you found any differences between the two approaches?

Basically, based on my experience, there is something wrong with your
Jmeter script as it should not happen.

If you cannot narrow the problem down with simple code, people might
not be able to help you.

On Mon, Feb 22, 2021 at 8:12 PM Harshal Kulkarni
<[hidden email]> wrote:

>
> Yes, I can able to login on same machine and same browser simultaneously.
>
> On Mon, 22 Feb, 2021, 6:57 pm Tong Sun, <[hidden email]> wrote:
>>
>> On Mon, Feb 22, 2021 at 5:31 AM Harshal Kulkarni
>> <[hidden email]> wrote:
>> >
>> > Hello Team,
>> >
>> > I am working on load testing of one application using Jmeter 5.1.1.
>> > Unfortunately, client can not provide multiple test user IDs, so we have
>> > only 3 test user IDs. I want to load test with 50 concurrent users load.
>> > Application allows concurrent sessions from single user on browser and I
>> > can login with single user id on multiple machine and browser at same time.
>>
>> Can you login with single user id on the same machine and same browser
>> (different session) at same time?
>>
>> > But when I am trying to use single user id for multiple threads, in jmeter
>> > response I see that "session already active" message for 2nd and onwards
>> > threads. Only first thread able to login.
>>
>> Are you using distributed jmeter testing now?
>>
>> > I ha e used HTTP cache and cookie manager to clear cache.
>> > I tried to set different config from HTTP Cookie manager, but seeing same
>> > error.
>> > Could someone help me how I need to handle this?
>> >
>> > Thanks in advanced!
>> >
>> >
>> > Harshal
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>

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

Reply | Threaded
Open this post in threaded view
|

Re: How to handle Concurrent sessions for single user id in Jmeter

Mariusz W
In reply to this post by Harshal Kulkarni
Hi,
Did you check and compare all HTTP headers in browser and JMeter? Maybe there are any which should be added manually in JMeter (and in Browser are added and managed  by JavaScript)

Mariusz

On 2021/02/25 14:28:26, Harshal Kulkarni <[hidden email]> wrote:

> Can anyone suggest me here? I am still struggling with this issue.
>
>
> Thanks,
> Harshal
>
> On Tue, 23 Feb, 2021, 6:41 am Harshal Kulkarni, <[hidden email]>
> wrote:
>
> > Yes, I can able to login on same machine and same browser simultaneously.
> >
> > On Mon, 22 Feb, 2021, 6:57 pm Tong Sun, <[hidden email]> wrote:
> >
> >> On Mon, Feb 22, 2021 at 5:31 AM Harshal Kulkarni
> >> <[hidden email]> wrote:
> >> >
> >> > Hello Team,
> >> >
> >> > I am working on load testing of one application using Jmeter 5.1.1.
> >> > Unfortunately, client can not provide multiple test user IDs, so we have
> >> > only 3 test user IDs. I want to load test with 50 concurrent users load.
> >> > Application allows concurrent sessions from single user on browser and I
> >> > can login with single user id on multiple machine and browser at same
> >> time.
> >>
> >> Can you login with single user id on the same machine and same browser
> >> (different session) at same time?
> >>
> >> > But when I am trying to use single user id for multiple threads, in
> >> jmeter
> >> > response I see that "session already active" message for 2nd and onwards
> >> > threads. Only first thread able to login.
> >>
> >> Are you using distributed jmeter testing now?
> >>
> >> > I ha e used HTTP cache and cookie manager to clear cache.
> >> > I tried to set different config from HTTP Cookie manager, but seeing
> >> same
> >> > error.
> >> > Could someone help me how I need to handle this?
> >> >
> >> > Thanks in advanced!
> >> >
> >> >
> >> > Harshal
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [hidden email]
> >> For additional commands, e-mail: [hidden email]
> >>
> >>
>

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