From: Rich Bowen Date: Tue, 29 Mar 2011 14:43:24 +0000 (+0000) Subject: Advice regarding troubleshooting high server load with server-status - X-Git-Tag: 2.3.12~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6705224d9c5151335f8a2d007dfbac748448af1b;p=thirdparty%2Fapache%2Fhttpd.git Advice regarding troubleshooting high server load with server-status - something that comes up on IRC at least once a day. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1086605 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_status.xml b/docs/manual/mod/mod_status.xml index 06a3dd6a813..da201f68f6f 100644 --- a/docs/manual/mod/mod_status.xml +++ b/docs/manual/mod/mod_status.xml @@ -123,5 +123,37 @@ performance +
+ Using server-status to troubleshoot + +

The server-status page may be used as a starting + place for troubleshooting a situation where your server is consuming + all available resources (CPU or memory), and you wish to identify + which requests or clients are causing the problem.

+ +

First, ensure that you have ExtendedStatus set on, so that you can see + the full request and client information for each child or + thread.

+ +

Now look in your process list (using top, or similar + process viewing utility) to identify the specific processes that are + the main culprits. Order the output of top by CPU + usage, or memory usage, depending on what problem you're trying to + address.

+ +

Reload the server-status<.code> poage, and look for those process + ids, and you'll be able to see what request is being served by that + process, for what client. Requests are transient, so you may need to + try several times before you catch it in the act, so to speak.

+ +

This process should give you some idea what client, or + what type of requests, are primarily responsible for your load + problems. Often you will identify a particular web application that + is misbehaving, or a particular client that is attacking your + site.

+ +
+