You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Arnab Ganguly <ag...@gmail.com> on 2008/09/10 15:46:39 UTC
Query on ap_lingering_close
Hi All,
I am getting lot of CLOSE_WAIT ,SYNC_RCV and TIME_WAIT state when I do a
netstat and result it is Apache pause.
What would be the ideal approach to solve the issue.I am planning for
explicit call of ap_lingering_close after reading the client request.
Also I see a #ifdef CORE_PRIVATE under httpd_connection.h where
ap_lingering_close is defined and the macro #define CORE_PRIVATE is defined
in mod_proxy.h.But I don't use mod_proxy so is it going to impact anything?
For TIME_WAIT plan to reduce tcp_max_tw_buckets value.Is it going to be
impacted?
For SYNC_RCV
Increasing net.ipv4.tcp_max_syn_backlog, decreasing tcp_synack_retries and
enabling tcp_syncookies.
If you have any suggestion then please let me know.
Thanks in advance.
-A
Re: Query on ap_lingering_close
Posted by Eric Covener <co...@gmail.com>.
On Wed, Sep 10, 2008 at 9:46 AM, Arnab Ganguly <ag...@gmail.com> wrote:
> Hi All,
> I am getting lot of CLOSE_WAIT ,SYNC_RCV and TIME_WAIT state when I do a
> netstat and result it is Apache pause.
> What would be the ideal approach to solve the issue.I am planning for
> explicit call of ap_lingering_close after reading the client request.
Wouldn't that prevent Apache from writing a response?
Maybe users@httpd.apache.org could help you identify why you server is hanging.
--
Eric Covener
covener@gmail.com