php.net suggest to use Lingerd for apache, but the problem is that it's not working with apache2.2 is there something similar for apache2?
*"Lingerd is a daemon (service) designed to take over the job of properly closing network connections from an http server like Apache. Because of some technical complications in the way TCP/IP and HTTP work, each Apache process currently wastes a lot of time "lingering" on client connections, after the page has been generated and sent. Lingerd takes over this job, leaving the Apache process immediately free to handle a new connection. As a result, Lingerd makes it possible to serve the same load using considerably fewer Apache processes. " http://talks.php.net/show/perf_tunning/11*
We used lingerd at LQ when we were still using the 1.3.x httpd branch and I'm not aware that anything comparable exists for httpd2. That being said, if you get the amount of traffic where the lingering_close is becoming an issue, I highly recommend you put a front-end proxy in front of multiple httpd's. You'll solve the lingering connections, gain a quite a bit of additional functionality and increase reliability. We use nginx, but there are many quality Open Source options available (Pound, Pen, Perlbal, HA Proxy, etc.).
For more information on nginx: http://www.linuxquestions.org/linux/articles/Jeremys_Magazine_Articles/Take_Off_With_Nginx
answered 25 Apr '10, 23:45