You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Rakshita BJ <wr...@gmail.com> on 2023/03/29 20:11:57 UTC

Queue Error in Jmeter

Hi Team

I am working on a lottery project and using jmeter to do a performance test.
I am conducting a performance test on teh API's.

I have a total of 48 thread groups with each thread group having a sign on
request.

When I try to run with 100 users the sign on request is failing with the
below error.

{"code":39,"message":"Pending acquire queue has reached its maximum size of
32","source":"auth"}.

The API's are working fine, I guess I have some issue with the tool.

Please let me know if you need any further details.

Thanks
Rakshita

SV: Queue Error in Jmeter

Posted by Christian Gerdes <ch...@skatteverket.se.INVALID>.
Sounds to me like there is a limit set in the API on how many concurrent authentication requests you can have from a single IP address or something similar. Try to see what happens if you run from more than one jmeter instance on two separate IP adresses, can both run successfully with up to 32 concurrent requests?

/Christian

-----Ursprungligt meddelande-----
Från: Rakshita BJ <wr...@gmail.com> 
Skickat: den 30 mars 2023 01:03
Till: JMeter Users List <us...@jmeter.apache.org>
Ämne: Re: Queue Error in Jmeter

Yes, I have this Sign on API which I use to generate numerous transactions.

Suppose I am adding 100 users, out of 100 at least 20 would have failed the request with this error.

I had googled about this and this is the solution I got, which doesn't seem to work.

*This error message typically occurs when JMeter is trying to acquire more connections than are available in the authentication queue. The authentication queue has a maximum size of 32, so when JMeter tries to acquire more connections than this limit, the error message is displayed.*


*To resolve this error, you can try the following:Increase the authentication queue size: You can increase the size of the authentication queue by adding the following line to your JMeter properties file:*

*httpclient4.max_persistent_connections_per_route=your_value*

Thanks
Rakshita.


On Wed, Mar 29, 2023 at 6:43 PM Brian Wolfe <wo...@gmail.com>
wrote:

> > {"code":39,"message":"Pending acquire queue has reached its maximum 
> > size
> of
> > 32","source":"auth"}.
> Is this a response from the API your testing? that doesn't look like 
> anything we would typically see in jmeter logs.
>
> On Wed, Mar 29, 2023 at 6:10 PM Rakshita BJ 
> <wr...@gmail.com>
> wrote:
>
> > Hi Team
> >
> > Thank you for the response.
> >
> > Sign on request API can handle numerous request and that has been 
> > tested
> as
> > well. Also spoke to the API developer regarding this.
> >
> >
> > Only when I run the same api in Jmeter by adding lid on it,  it’s 
> > through an error.
> >
> > Thanks
> > Rakshita
> >
> > On Wed, Mar 29, 2023 at 6:02 PM Lisa Waugh <wa...@us.ibm.com> wrote:
> >
> > > Hi Rakshita,
> > > It sounds like you have reached the limits of what the sign on 
> > > request
> > api
> > > can handle.
> > >
> > > This isn’t a tool issue.
> > >
> > > Regards,
> > >
> > > Lisa JM Waugh
> > > Test Engineer
> > > CIO Software & Development Experience
> > > 1 704 907 7008 Mobile
> > > 1 720 342 5373 Office
> > > waugh@us.ibm.com
> > >
> > > IBM
> > >
> > >
> > >
> > > From: Rakshita BJ <wr...@gmail.com>
> > > Date: Wednesday, March 29, 2023 at 4:12 PM
> > > To: user@jmeter.apache.org <us...@jmeter.apache.org>
> > > Subject: [EXTERNAL] Queue Error in Jmeter Hi Team
> > >
> > > I am working on a lottery project and using jmeter to do a 
> > > performance test.
> > > I am conducting a performance test on teh API's.
> > >
> > > I have a total of 48 thread groups with each thread group having a 
> > > sign
> > on
> > > request.
> > >
> > > When I try to run with 100 users the sign on request is failing 
> > > with
> the
> > > below error.
> > >
> > > {"code":39,"message":"Pending acquire queue has reached its 
> > > maximum
> size
> > of
> > > 32","source":"auth"}.
> > >
> > > The API's are working fine, I guess I have some issue with the tool.
> > >
> > > Please let me know if you need any further details.
> > >
> > > Thanks
> > > Rakshita
> > >
> >
>
>
> --
> Thanks,
> Brian Wolfe
> https://www.linkedin.com/in/brian-wolfe-3136425a/
>

Re: Queue Error in Jmeter

Posted by Brian Wolfe <wo...@gmail.com>.
Ok, you're hitting a limit in your API server's workload. This is what
you're using jmeter to find. It may be that no other apps are putting as
much of a load as you are with jmeter. You need to tune your load test
according to your needs. You need to have some kind of metric that you are
trying to hit. So in short the issue is not JMeter. JMeter can generate a
lot of load and can easily overwhelm a server with requests.

On Wed, Mar 29, 2023 at 7:02 PM Rakshita BJ <wr...@gmail.com>
wrote:

> Yes, I have this Sign on API which I use to generate numerous transactions.
>
> Suppose I am adding 100 users, out of 100 at least 20 would have failed the
> request with this error.
>
> I had googled about this and this is the solution I got, which doesn't seem
> to work.
>
> *This error message typically occurs when JMeter is trying to acquire more
> connections than are available in the authentication queue. The
> authentication queue has a maximum size of 32, so when JMeter tries to
> acquire more connections than this limit, the error message is displayed.*
>
>
> *To resolve this error, you can try the following:Increase the
> authentication queue size: You can increase the size of the authentication
> queue by adding the following line to your JMeter properties file:*
>
> *httpclient4.max_persistent_connections_per_route=your_value*
>
> Thanks
> Rakshita.
>
>
> On Wed, Mar 29, 2023 at 6:43 PM Brian Wolfe <wo...@gmail.com>
> wrote:
>
> > > {"code":39,"message":"Pending acquire queue has reached its maximum
> size
> > of
> > > 32","source":"auth"}.
> > Is this a response from the API your testing? that doesn't look like
> > anything we would typically see in jmeter logs.
> >
> > On Wed, Mar 29, 2023 at 6:10 PM Rakshita BJ <wr...@gmail.com>
> > wrote:
> >
> > > Hi Team
> > >
> > > Thank you for the response.
> > >
> > > Sign on request API can handle numerous request and that has been
> tested
> > as
> > > well. Also spoke to the API developer regarding this.
> > >
> > >
> > > Only when I run the same api in Jmeter by adding lid on it,  it’s
> through
> > > an error.
> > >
> > > Thanks
> > > Rakshita
> > >
> > > On Wed, Mar 29, 2023 at 6:02 PM Lisa Waugh <wa...@us.ibm.com> wrote:
> > >
> > > > Hi Rakshita,
> > > > It sounds like you have reached the limits of what the sign on
> request
> > > api
> > > > can handle.
> > > >
> > > > This isn’t a tool issue.
> > > >
> > > > Regards,
> > > >
> > > > Lisa JM Waugh
> > > > Test Engineer
> > > > CIO Software & Development Experience
> > > > 1 704 907 7008 Mobile
> > > > 1 720 342 5373 Office
> > > > waugh@us.ibm.com
> > > >
> > > > IBM
> > > >
> > > >
> > > >
> > > > From: Rakshita BJ <wr...@gmail.com>
> > > > Date: Wednesday, March 29, 2023 at 4:12 PM
> > > > To: user@jmeter.apache.org <us...@jmeter.apache.org>
> > > > Subject: [EXTERNAL] Queue Error in Jmeter
> > > > Hi Team
> > > >
> > > > I am working on a lottery project and using jmeter to do a
> performance
> > > > test.
> > > > I am conducting a performance test on teh API's.
> > > >
> > > > I have a total of 48 thread groups with each thread group having a
> sign
> > > on
> > > > request.
> > > >
> > > > When I try to run with 100 users the sign on request is failing with
> > the
> > > > below error.
> > > >
> > > > {"code":39,"message":"Pending acquire queue has reached its maximum
> > size
> > > of
> > > > 32","source":"auth"}.
> > > >
> > > > The API's are working fine, I guess I have some issue with the tool.
> > > >
> > > > Please let me know if you need any further details.
> > > >
> > > > Thanks
> > > > Rakshita
> > > >
> > >
> >
> >
> > --
> > Thanks,
> > Brian Wolfe
> > https://www.linkedin.com/in/brian-wolfe-3136425a/
> >
>


-- 
Thanks,
Brian Wolfe
https://www.linkedin.com/in/brian-wolfe-3136425a/

Re: Queue Error in Jmeter

Posted by Rakshita BJ <wr...@gmail.com>.
Yes, I have this Sign on API which I use to generate numerous transactions.

Suppose I am adding 100 users, out of 100 at least 20 would have failed the
request with this error.

I had googled about this and this is the solution I got, which doesn't seem
to work.

*This error message typically occurs when JMeter is trying to acquire more
connections than are available in the authentication queue. The
authentication queue has a maximum size of 32, so when JMeter tries to
acquire more connections than this limit, the error message is displayed.*


*To resolve this error, you can try the following:Increase the
authentication queue size: You can increase the size of the authentication
queue by adding the following line to your JMeter properties file:*

*httpclient4.max_persistent_connections_per_route=your_value*

Thanks
Rakshita.


On Wed, Mar 29, 2023 at 6:43 PM Brian Wolfe <wo...@gmail.com>
wrote:

> > {"code":39,"message":"Pending acquire queue has reached its maximum size
> of
> > 32","source":"auth"}.
> Is this a response from the API your testing? that doesn't look like
> anything we would typically see in jmeter logs.
>
> On Wed, Mar 29, 2023 at 6:10 PM Rakshita BJ <wr...@gmail.com>
> wrote:
>
> > Hi Team
> >
> > Thank you for the response.
> >
> > Sign on request API can handle numerous request and that has been tested
> as
> > well. Also spoke to the API developer regarding this.
> >
> >
> > Only when I run the same api in Jmeter by adding lid on it,  it’s through
> > an error.
> >
> > Thanks
> > Rakshita
> >
> > On Wed, Mar 29, 2023 at 6:02 PM Lisa Waugh <wa...@us.ibm.com> wrote:
> >
> > > Hi Rakshita,
> > > It sounds like you have reached the limits of what the sign on request
> > api
> > > can handle.
> > >
> > > This isn’t a tool issue.
> > >
> > > Regards,
> > >
> > > Lisa JM Waugh
> > > Test Engineer
> > > CIO Software & Development Experience
> > > 1 704 907 7008 Mobile
> > > 1 720 342 5373 Office
> > > waugh@us.ibm.com
> > >
> > > IBM
> > >
> > >
> > >
> > > From: Rakshita BJ <wr...@gmail.com>
> > > Date: Wednesday, March 29, 2023 at 4:12 PM
> > > To: user@jmeter.apache.org <us...@jmeter.apache.org>
> > > Subject: [EXTERNAL] Queue Error in Jmeter
> > > Hi Team
> > >
> > > I am working on a lottery project and using jmeter to do a performance
> > > test.
> > > I am conducting a performance test on teh API's.
> > >
> > > I have a total of 48 thread groups with each thread group having a sign
> > on
> > > request.
> > >
> > > When I try to run with 100 users the sign on request is failing with
> the
> > > below error.
> > >
> > > {"code":39,"message":"Pending acquire queue has reached its maximum
> size
> > of
> > > 32","source":"auth"}.
> > >
> > > The API's are working fine, I guess I have some issue with the tool.
> > >
> > > Please let me know if you need any further details.
> > >
> > > Thanks
> > > Rakshita
> > >
> >
>
>
> --
> Thanks,
> Brian Wolfe
> https://www.linkedin.com/in/brian-wolfe-3136425a/
>

Re: Queue Error in Jmeter

Posted by Brian Wolfe <wo...@gmail.com>.
> {"code":39,"message":"Pending acquire queue has reached its maximum size
of
> 32","source":"auth"}.
Is this a response from the API your testing? that doesn't look like
anything we would typically see in jmeter logs.

On Wed, Mar 29, 2023 at 6:10 PM Rakshita BJ <wr...@gmail.com>
wrote:

> Hi Team
>
> Thank you for the response.
>
> Sign on request API can handle numerous request and that has been tested as
> well. Also spoke to the API developer regarding this.
>
>
> Only when I run the same api in Jmeter by adding lid on it,  it’s through
> an error.
>
> Thanks
> Rakshita
>
> On Wed, Mar 29, 2023 at 6:02 PM Lisa Waugh <wa...@us.ibm.com> wrote:
>
> > Hi Rakshita,
> > It sounds like you have reached the limits of what the sign on request
> api
> > can handle.
> >
> > This isn’t a tool issue.
> >
> > Regards,
> >
> > Lisa JM Waugh
> > Test Engineer
> > CIO Software & Development Experience
> > 1 704 907 7008 Mobile
> > 1 720 342 5373 Office
> > waugh@us.ibm.com
> >
> > IBM
> >
> >
> >
> > From: Rakshita BJ <wr...@gmail.com>
> > Date: Wednesday, March 29, 2023 at 4:12 PM
> > To: user@jmeter.apache.org <us...@jmeter.apache.org>
> > Subject: [EXTERNAL] Queue Error in Jmeter
> > Hi Team
> >
> > I am working on a lottery project and using jmeter to do a performance
> > test.
> > I am conducting a performance test on teh API's.
> >
> > I have a total of 48 thread groups with each thread group having a sign
> on
> > request.
> >
> > When I try to run with 100 users the sign on request is failing with the
> > below error.
> >
> > {"code":39,"message":"Pending acquire queue has reached its maximum size
> of
> > 32","source":"auth"}.
> >
> > The API's are working fine, I guess I have some issue with the tool.
> >
> > Please let me know if you need any further details.
> >
> > Thanks
> > Rakshita
> >
>


-- 
Thanks,
Brian Wolfe
https://www.linkedin.com/in/brian-wolfe-3136425a/

Re: Queue Error in Jmeter

Posted by Rakshita BJ <wr...@gmail.com>.
Hi Team

Thank you for the response.

Sign on request API can handle numerous request and that has been tested as
well. Also spoke to the API developer regarding this.


Only when I run the same api in Jmeter by adding lid on it,  it’s through
an error.

Thanks
Rakshita

On Wed, Mar 29, 2023 at 6:02 PM Lisa Waugh <wa...@us.ibm.com> wrote:

> Hi Rakshita,
> It sounds like you have reached the limits of what the sign on request api
> can handle.
>
> This isn’t a tool issue.
>
> Regards,
>
> Lisa JM Waugh
> Test Engineer
> CIO Software & Development Experience
> 1 704 907 7008 Mobile
> 1 720 342 5373 Office
> waugh@us.ibm.com
>
> IBM
>
>
>
> From: Rakshita BJ <wr...@gmail.com>
> Date: Wednesday, March 29, 2023 at 4:12 PM
> To: user@jmeter.apache.org <us...@jmeter.apache.org>
> Subject: [EXTERNAL] Queue Error in Jmeter
> Hi Team
>
> I am working on a lottery project and using jmeter to do a performance
> test.
> I am conducting a performance test on teh API's.
>
> I have a total of 48 thread groups with each thread group having a sign on
> request.
>
> When I try to run with 100 users the sign on request is failing with the
> below error.
>
> {"code":39,"message":"Pending acquire queue has reached its maximum size of
> 32","source":"auth"}.
>
> The API's are working fine, I guess I have some issue with the tool.
>
> Please let me know if you need any further details.
>
> Thanks
> Rakshita
>

Re: Queue Error in Jmeter

Posted by Lisa Waugh <wa...@us.ibm.com>.
Hi Rakshita,
It sounds like you have reached the limits of what the sign on request api can handle.

This isn’t a tool issue.

Regards,

Lisa JM Waugh
Test Engineer
CIO Software & Development Experience
1 704 907 7008 Mobile
1 720 342 5373 Office
waugh@us.ibm.com

IBM



From: Rakshita BJ <wr...@gmail.com>
Date: Wednesday, March 29, 2023 at 4:12 PM
To: user@jmeter.apache.org <us...@jmeter.apache.org>
Subject: [EXTERNAL] Queue Error in Jmeter
Hi Team

I am working on a lottery project and using jmeter to do a performance test.
I am conducting a performance test on teh API's.

I have a total of 48 thread groups with each thread group having a sign on
request.

When I try to run with 100 users the sign on request is failing with the
below error.

{"code":39,"message":"Pending acquire queue has reached its maximum size of
32","source":"auth"}.

The API's are working fine, I guess I have some issue with the tool.

Please let me know if you need any further details.

Thanks
Rakshita

Re: Queue Error in Jmeter

Posted by Dmitri T <gl...@live.com>.
Rakshita BJ wrote:
> Hi Team
>
> I am working on a lottery project and using jmeter to do a performance test.
> I am conducting a performance test on teh API's.
>
> I have a total of 48 thread groups with each thread group having a sign on
> request.
>
> When I try to run with 100 users the sign on request is failing with the
> below error.
>
> {"code":39,"message":"Pending acquire queue has reached its maximum size of
> 32","source":"auth"}.
>
> The API's are working fine, I guess I have some issue with the tool.
>
> Please let me know if you need any further details.
>
> Thanks
> Rakshita
>
I don't see any issue with the tool, I see that your "queue" (whatever 
it is) is accepting only 32 connections and you're trying to use 100 
concurrent users (if not more)

You either need to amend the "queue" configuration so it would accept as 
many concurrent connections as you're trying to create.

Alternatively you can limit JMeter's throughput to the value the queue 
accepts, it can be done using JMeter Timers: 
https://www.blazemeter.com/blog/jmeter-timer

For example if you add the Synchronizing Timer 
https://jmeter.apache.org/usermanual/component_reference.html#Synchronizing_Timer 
as a child of the Sampler which performs the login and set the "Number 
of Simultaneous Users to Group by" to 32 JMeter will perform login in 
"chunks" of 32 users at the same time.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org