Welcome! Log In Create A New Profile

Advanced

Suggestions regarding number of connections

October 21, 2011 12:14PM
Currently we have a single Nginx web sever connecting to a pool of PHP app servers. The response from the application layer (PHP / DB) is excellent, but our site load times are not great. We've run some analytical tools and the network / web server response time is where a significant bottleneck exists.

In working with our managed hosting company on this issue, we ran the following shell commands. I was wondering if someone could give me an idea if these numbers are indicative of a configuration issue with OS and / or Nginx OR will more CPU power help with this problem OR maybe we need to load balance the traffic to another web server.

Should Nginx be able to handle this kind of traffic in general? Is there something that can be done in terms of Nginx configuration or OS configuration that can improve this issue (i.e. > 7,000 connections waiting)?

root@server1 [~]# netstat -anp | grep ':80' | grep ESTABLISHED -c
4785
Over 4000 current connections.

root@server1 [~]# netstat -anp | grep ':80' | grep -i WAIT -c
7982
7000 Connections in waiting for data state.

root@server1 [~]# netstat -anp | grep ':80' | grep -i SYN -c
280
Subject Author Posted

Suggestions regarding number of connections

iberkner October 21, 2011 12:14PM

Re: Suggestions regarding number of connections

Brian Akins October 21, 2011 08:34PM

Re: Suggestions regarding number of connections

Ilan Berkner October 21, 2011 10:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 112
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready