I have been recently noticing strange Httpd thread that are using all the cpu and seem to run forever, here sample output from the top command(I ran just now) :
%CPU %MEM TIME COMMAND
45.6 0.0 346:52 httpd
45.2 0.0 317:11 httpd
These are slowing down the site incredibly and I have to restart apache when I see them.
When I posted on another forums someone said it could be an infinate loop somewhere but how can I track this other than going through all the code. Should't scripts have some sort of maximum execution time anyway?
Of course this problem could not be due to php but it's the only scripting language I use.
If anyone has any suggestions I would be most gratefull.