How can I know exactly what my webserver is doing?
February 7, 2008 11:00 AM
Subscribe
I've got a web server under a fairly heavy load of web traffic. What techniques can I use to find the bottlenecks?
I run a dedicated webserver for a website that gets about 600,000 pageviews a month. Most of the time it's fine, but there are times when it chokes on the traffic and becomes unaccessible.
What are some tools, logs, or applications I can run that can help me diagnose where the weak points are. I already know how to use "top", and tail -f on the log file to watch a stream of entries accumulating, but that's not enough.
Is it a rogue spider crawling through my directories, gobbling all my bandwidth? Is the hard drive not able to serve up the files fast enough? Is there some kind of hacking attempt going on? Have I misconfigured one little setting in my Apache httpd.conf file that's turning away users? Is there a stupid infinite redirect somewhere?
I want to be able to figure out exactly what's going on for the server when it's having a slowdown to diagnose the problem.
Any suggestions?
The server is running Linux CentOS 4.4. I'm comfortable compiling and installing software, running advanced commands, stitching together perl code, etc.
posted by fcain to computers & internet (11 comments total)
4 users marked this as a favorite
Use a hard drive monitor tool to check to see if it's getting pounded. Maybe you need more memory?
Use a network monitor to determine if you have enough bandwidth, or if your server is getting clobbered. Do you need a bigger pipe? Maybe distributed servers?
If it's a rouge spider, try putting a draconian robots.txt file on your server to shut them down.
Just a few suggestions!
posted by fusinski at 11:16 AM on February 7, 2008