Re:Fighting Back After Hacker News Took Down My Site
by tluyben2 on Thursday July 14, 2011 @11:03AM
(#2763315)
Yeah I hear tons of people saying 'check if KeepAlive if on, your site will be much faster if it is'. Not the smartest general remark about configuration of web servers to make :)
[ Parent
| on HN ]
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.
Re:Fighting Back After Hacker News Took Down My Site
by spydum on Thursday July 14, 2011 @11:10AM
(#2763359)
There is nothing wrong with keepalives if you give them proper timeout and request limit values. They definitely cut down tcp/ip setup overhead, and improve page render times. Just don't let the client be too greedy about how long they hold that connection.