Apache weirdness
Scenario I encountered recently which has me stumped..
- httpd at max showing many backed-up requests
- Incoming traffic is far below normal and pages load incredibly slowly (2-3min per request) -- understandable since most clients connecting are seeing timeouts and slow page loads -- I'm measuring traffic at eth level, so it's not just apache traffic but all traffic to the machine.
- outgoing traffic is also far below normal
- machine is near idle, far below normal on cpu and memory usage
- Plain text pages load just as slow as mod_perl pages
- Restarting httpd doesn't help.. server goes right up to maxing out on requests
- Cycling the box doesn't help.
- Http servers downstream are zippy and mostly idle, only receiving few requests from the main (the problematic one) server
- Everything else on the machine is fine.. no other issues that can be found.. log files are at their typical size, hard drive has plenty of room
- Firewall is logging absolutely nothing unusual
- No errors in any log files (systems and httpd)
- Scan of access_log shows nothing out of ordinary (other than fewer requests than normal due to slowness)
- The same slowness occurs when loading pages locally on the machine itself.
- Nameserver isn't the issue either.. nslookup to the two servers configured were zippy.
Now after couple hours of tearing my hair out, I shut the site down at which point it was only serving a very small text file with a "technical difficulties" msg for any request. This file was taking just as long to load as the pages when site was active. After 15 minutes or so of shutdown, the problem went away. Turned the site back on.. been on for hours, problem has not returned.
I'm suspecting some sort of httpd attack that threw apache in for some internal loop.. but then again, cpus were nearly idle, so it wasn't processing hard.. just spawning processes at the max and not returning pages.
Anyone have any ideas?