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*

asked 25 Apr '10, 13:06

S2eve's gravatar image

accept rate: 0%

edited 25 Apr '10, 13:52

Web31337's gravatar image


Please accept an answer so the question/answer can be finished.

(20 Apr '11, 13:42) rfelsburg ♦

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

jeremy's gravatar image

jeremy ♦♦
accept rate: 37%

I tried nginx before and i didn't saw a huge difference in fact the performance decreased and i had some strange pickups that crush my server. what do you think about squid-cache can it take care of the job?

(26 Apr '10, 03:54) S2eve

If performance decreased as a result of implementing nginx, it was almost certainly either implemented incorrectly or you have another issue somewhere else in the stack. Squid is an entirely different solution that will benefit an entirely different use case (its main benefit is caching).


(26 Apr '10, 18:12) jeremy ♦♦

so what you would recommend that's good for centos and easy to install?

(26 Apr '10, 18:19) S2eve

If you're looking for a cache / httpd accelerator: Varnish (http://varnish-cache.org/) If you're looking for a light weight reverse proxy: nginx (http://nginx.org/)


(27 Apr '10, 15:54) jeremy ♦♦

thanks :) steve

(27 Apr '10, 17:54) S2eve
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 25 Apr '10, 13:06

Seen: 6,050 times

Last updated: 20 Apr '11, 13:42

powered by OSQA