LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Hanging apache

[ILUG] Hanging apache

Colm MacCarthaigh colm at stdlib.net
Thu Jan 25 12:19:26 GMT 2007


On Thu, Jan 25, 2007 at 12:07:23PM +0000, Niall O Broin wrote:
> There is no clue in neither the access nor error logs. The other  
> server on the box, which is the same version of apache, never does this.

This almost always turns out to be a dynamic scripting module, usually
mod_php and a blocking operation in some code chewing up the process.

The most recent spate of these is down to a single wordpress plugin,
Spam Karma, which when an RBL maintainer deleted the RBL suddenly caused
all word-press comments to create hanging blocking DNS requests which
the PHP code did not handle properly at all.

The best thing to do is to attach gdb to the process and to do a
backtrace and see what functions it's blocking in. You can use tools
like lsof/fuser and strace/truss to see any blocking file descriptors
and system calls too.

In apache 2.x, mod_forensic_log is a good way of isolating the
requests that actually cause the problems.

-- 
Colm MacCárthaigh                        Public Key: colm+pgp at stdlib.net



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell