Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proccess stucked with the status W ("Sending Reply")

Status
Not open for further replies.

edgardnog

IS-IT--Management
Jan 31, 2008
2
BR

Hi,

We are having a strange problem. We don´t know why, but the Apache proccess get stucked with the status W ("Sending Reply), so the process don´t die and apache "crash" because a lot of process. When this happens i just restart the Apache and the proccess stop to get the W status, and everything starts to work fine again.

This problems happens a lot of times during the day, so it happen when we are geting a lot of traffic and when we are getting low traffic.

I had try very hard to find out what is the problem, but the only thing that i found is that the problem isn´t the bandwith or database problems.

We run our site with
linux: Gentoo
Apache
php + Mysql.

Can anyone help me with this?

sory for my bad english :)
 
Same URL?
Is the client IP the same?
Perhaps DOS attack, probably unlikely.

strace the process, see if it is polling, perhaps a thread lock in PHP.

Take a snapshot of the status and compare a few minutes later. Are any of the waiting processes ever completed?

scroll down the Apache timeout from the default 300 might give you relief but not fix the problem.

Is the webserver behind a firewall?
eugene
 
Hi eugene, thanks for you reply

Our site is behind a firewall. I don´t think it is a DOS attack. They are different IP, and also different urls.

Does anyone know anything that can help me to solve this problem?

Thanks, edgard
 
Check php and mysql. A lot of times something like this can be traced back to mysql going a little nuts. If all looks well, check your memory and cpu usage. A pooly written script can cause memory leaks if not mojor hemorrhaging. Don't put too much faith in your firewall. It's not the people it keeps out that will cause problems. It's those it lets in. If there is a way into your system such as any server open to the public, they are already past your firewall. Now they will use any port to find a way to exploit it. You need to keep up with the latest info and keep your system up to date on all security updates. Check the software developers websites to see if any vulnerabilities have been found and how to fix them.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top