Welcome! Log In Create A New Profile

Advanced

Re: 2048 worker_connections are not enough while connecting to upstream

J2R
May 10, 2011 06:30AM
On 10/05/11 11:19, Maxim Dounin wrote:
> Hello!
>
> On Tue, May 10, 2011 at 10:31:06AM +0100, John Moore wrote:
>
>
>> I'm using nginx as a remote proxy server in front of some Tomcat
>> instances, with pretty high traffic. Suddenly yesterday afternoon we
>> started getting the error in the message subject, one I'd never seen
>> before, and it's occurred tens of thousands of times since. Now,
>> I've upped the worker_connections count to a much higher figure and
>> the problem has gone away for now. But I'm concerned that it might
>> be indicative of something else - some kind of DOS attack, maybe?
>> What does this signify and why might we suddenly start getting it?
>> Thanks.
>>
> Without proper history graphs (use stub_status, Luke!) it's hard
> to say if you are under attack or just your normal load reached
> the bar (or your backend response time degraded and this resulted
> in more connections used, or your network uplink has problems and
> this caused more connections...).
>
I'll look into these.
> On the other hand, 2048 is pretty low, and easily reached even
> without keepalive. Usual production values for "high traffic"
> sites is over 9000.
>
OK, I may bump it up a bit higher than the 8192 I set it as today.
> Please also note that using high worker_connections may also
> require tuning of your OS to allow appropriate number of file
> descriptors to be used.
>
I made this change a while back, so we should be OK with that.

Thanks for your extremely lucid help!

John


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

2048 worker_connections are not enough while connecting to upstream

J2R May 10, 2011 05:30AM

Re: 2048 worker_connections are not enough while connecting to upstream

Maxim Dounin May 10, 2011 06:20AM

Re: 2048 worker_connections are not enough while connecting to upstream

J2R May 10, 2011 06:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 212
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready