View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-26-2012, 07:18 AM   #1
LQ Newbie
Registered: Mar 2009
Location: pretoria,SA
Distribution: Centos/Ubuntu
Posts: 9

Rep: Reputation: 0
Talking apache and CLOSE_WAIT connections


I Googled for like 2 days without any results.If you can, please help.

I'm using Centos 6.3 64bit running Apache 2.2.15
Apache works fine, but it stops responding after a few minutes.
The cause for this is that the connections never close.
The connections will stay in a CLOSE_WAIT state.As soon as i restart apache it works again
until the MaxClients are reached and then it stops responding again.

netstat -plant |grep CLOSE_WAIT:
tcp 1 0 ::ffff: ::ffff: CLOSE_WAIT 3498/httpd (Have like 600 of this)

Any idea what might cause this?

Old 09-26-2012, 08:20 AM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,984

Rep: Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444
That's odd ... when I googled apache "close_wait" (notice the quotes), I encountered several very detailed postings, about various and distinctly-different possibilities, which for obvious reasons I won't repeat here. Which ones did you find so-far, and what was your conclusion so-far with each of them? Maybe what you're dealing with is somehow something different. Tell us also about whatever software besides Apache (if any) is serving these pages.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Had apache working, then set up vsftpd, now apache is refusing my connections beetle_boy66 Linux - Newbie 4 01-25-2006 09:57 PM
Close_wait ghodkiller Linux - Networking 0 01-08-2005 05:44 PM
Close_Wait AmitC Linux - General 0 12-30-2004 02:18 AM
Close_wait adoyee Programming 1 02-12-2004 12:18 AM
ftp connections hanging forever in CLOSE, CLOSE_WAIT state mxyzplk Linux - Software 0 11-26-2003 10:54 AM

All times are GMT -5. The time now is 01:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration