3
votes
2answers
465 views

When a server IP changes, do exising TCP (e.g. http/mysql) connections remain running

We have some PHP-FPM servers and when they need a database connection, they connect to an HAProxy server which selects them a database server to use and the connection opens. When we then want to ...
1
vote
0answers
176 views

Improving TCP performance over a gigabit network lots of connections and high traffic for storage and streaming services

I have two servers, Both servers hardware Specification are Processor : Dual Processor RAM : over 128 G.B Hard disk : SSD Hard disk Outging Traffic bandwidth : 3 Gbps network cards speed : 10 Gbps ...
0
votes
1answer
111 views

Show real TCP/IP addresses behind Nginx environment

When i execute the command netstat -atun | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -n I see high number of connection assigned to server ip I want to see the real ...
1
vote
1answer
94 views

Low throughput on Debian + nginx/apache

On the same LAN/WAN I have a Windows server 2012 server running IIS 7.5 and a Debian (wheezy) server running Nginx 1.4.5. Both servers are connected to the same LAN/WAN. When I download a 10mb file ...
3
votes
1answer
590 views

Reverse proxy for mixed tcp, udp, and http services

I'm building an architecture that will be hosting various services which individually maybe listening on a variable number of ports that could be mixed protocols. I want to map these services to ...
0
votes
0answers
181 views

Too many TCP TIME_WAIT on PHP FCGI PORT

There are way too many TIME_WAIT on 127.0.0.1 This is causing PHP FCGI to work way too slow and hence my error log is full of "recv() failed (110: Connection timed out) while reading response header ...
0
votes
1answer
360 views

How to increase nginx connections

I am facing the problem of nginx max connection issues. I am not able to increase max active connections(520) made by nginx. Some time it is using whole writing (516) operation connections. and due to ...
0
votes
0answers
122 views

Nginx growth of writing connections

I have a web server: ubuntu nginx+uwsgi+postgresql and a stats server: where munin2 is installed. The nginx app server has nginx-1.2.1 with ngx_pagespeed module installed by compilation, taken from ...
0
votes
1answer
103 views

Port scanning from localhost

I see lot of tcp connections on different ports on my server with 'TIME_WAIT' status. Just simple port scan, but i cant see ip address of this bastard because connections is going from my nginx. Can ...
1
vote
2answers
1k views

FreeBSD Listen Queue Overflows - can't increase max queue size

I have a decently high trafficked FreeBSD Nginx server, and I'm starting to get a large number of listen queue overflows: [root@svr ~]# netstat -sp tcp | fgrep listen 80361931 listen queue overflows ...
2
votes
2answers
732 views

HAProxy + nginx reaching max numtcpsock in about 24 hours

I'm running a relatively simple VPS (a Media Temple (ve)) with a few PHP-based websites and (eventually) a few Node servers. In order to enable WebSockets support, I'm using HAProxy on port 80, which ...
1
vote
0answers
235 views

Truncated HTML responses with OpenVZ (and nginx)

I'm running nginx in a OpenVZ container on Debian 6 and when proxying I get truncated responses. Most of the time it happens when I proxy another proxy like varnish or apache (for svn servers). I ...
1
vote
0answers
435 views

nginx stuck and setting CLOSE_WAIT when using worker_processes > 1

Everything works nicely if I have worker_processes=1, or I run one request at a time. If I open a browser on a fresh nginx install and holds F5 down a couple of seconds, the sockets gets lingering as ...
0
votes
1answer
130 views

What to check when nginx is fast to serve requests once connected, but slow to connect?

There is sometimes a 1-2 second delay when connecting to port 80 (nginx) over the public interface. It occurs 50% of the time. Once connected nginx serves all requests, including fastcgi proxy ...
0
votes
1answer
260 views

Finding the so_sndbuf of a running process

I'm wondering if there's any way to find the tcp so_sndbuf of an actively running process (such as apache or nginx). I know that tcp_wmem sets the default value, but I'm not sure if the server ...
1
vote
0answers
643 views

Connection reset by peer

I have found this error on my NGINX error.log: 2011/05/09 23:33:52 [error] 22145#0: *1158 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: ...
2
votes
2answers
2k views

Millions of SYN_RECV connections, no DDoS

We have such server structure: reverse proxy (nginx) -> worker (uwsgi) -> postgresql / memcached. All servers are in local network behind router, with NATed external ip:ports (http/s 80/443 to proxy, ...