Re:Fighting Back After Hacker News Took Down My Site
by pornel on Thursday July 14, 2011 @12:00PM
(#2763591)
It's not problem of web servers in general, but specifically Apache.
HTTP keep-alive connections are faster (saves 3-way handshake on subsequent requests and allows pipelining).
The problem is that Apache implements them in a horribly inefficient manner (thread/process and all its memory kept in use just to hold on to a socket).
If you use nginx, lighttpd or shield Apache with haproxy/varnish, then you can easily have keep-alive enabled and clients will see better performance.
HTTP keep-alive connections are faster (saves 3-way handshake on subsequent requests and allows pipelining).
The problem is that Apache implements them in a horribly inefficient manner (thread/process and all its memory kept in use just to hold on to a socket).
If you use nginx, lighttpd or shield Apache with haproxy/varnish, then you can easily have keep-alive enabled and clients will see better performance.