From dustinhughes@example.org Mon Oct 01 07:48:43 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 21904 invoked from network); 1 Oct 2007 07:48:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 07:48:43 -0000 Received: (qmail 5890 invoked by uid 500); 1 Oct 2007 07:48:22 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 5868 invoked by uid 500); 1 Oct 2007 07:48:22 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 5857 invoked by uid 99); 1 Oct 2007 07:48:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 00:48:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dustinhughes@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO fantomas.fantomas.sk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 07:48:21 +0000 Received: from fantomas.fantomas.sk (uhlar@localhost [83.161.120.155]) by fantomas.fantomas.sk (8.13.8/8.13.8/Debian-3) with ESMTP id l917lb7p005690; Mon, 1 Oct 2007 09:47:38 +0200 Received: (from uhlar@localhost) by fantomas.fantomas.sk (8.13.8/8.13.8/Submit) id l917lRid005689; Mon, 1 Oct 2007 09:47:27 +0200 X-Authentication-Warning: fantomas.fantomas.sk: uhlar set sender to dustinhughes@example.org using -f Date: Mon, 1 Oct 2007 09:47:27 +0200 From: Matus UHLAR - fantomas <dustinhughes@example.org> To: Samuel Vogel <dustinhughes@example.org> Cc: dustinhughes@example.org Message-ID: <dustinhughes@example.org> Mail-Followup-To: Samuel Vogel <dustinhughes@example.org>, dustinhughes@example.org References: <!&!AAAAAAAAAAAYAAAAAAAAAA7E4VmldqBKrfJV0oWAYH3CgAAAEAAAAPaMNNRbwCZDgA9zafJMzZABAAAAAAdustinhughes@example.org> <dustinhughes@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <dustinhughes@example.org> X-Echelon: nuclear bomb plane crash terrorist attack djihad spy echelon sucks User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Investigating high harddrive load Hello, please, if you are writing a new post, send it as new mail and not as reply/followup on old mail. It makes people with threading clients angry and they can also in such case miss your e-mail. This time I send copy to the list, because you seem to have ignored my last 3 mails asking you the same. Thank you. On 29.09.07 17:08, Samuel Vogel wrote: > Date: Sat, 29 Sep 2007 17:08:54 +0200 > From: Samuel Vogel <dustinhughes@example.org> > To: dustinhughes@example.org > References: <!&!AAAAAAAAAAAYAAAAAAAAAA7E4VmldqBKrfJV0oWAYH3CgAAAEAAAAPaMNNRbwCZDgA9zafJMzZABAAAAAAdustinhughes@example.org> > In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAAA7E4VmldqBKrfJV0oWAYH3CgAAAEAAAAPaMNNRbwCZDgA9zafJMzZABAAAAAAdustinhughes@example.org> > Subject: [users@httpd] Investigating high harddrive load > > Hey people, > > I would like to know if there is any way to debug what vhost is causing > the high load on my harddrive, that I'm experiencing. > To be more specific: > When I run "top", 80% of my CPU time is in i/o wait. How could I find > out, what vhost is causing this? -- Matus UHLAR - fantomas, dustinhughes@example.org ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Fucking windows! Bring Bill Gates! (Southpark the movie) --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org From dustinhughes@example.org Mon Oct 01 08:23:33 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 30631 invoked from network); 1 Oct 2007 08:23:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 08:23:32 -0000 Received: (qmail 35134 invoked by uid 500); 1 Oct 2007 08:23:12 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 35111 invoked by uid 500); 1 Oct 2007 08:23:12 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 35100 invoked by uid 99); 1 Oct 2007 08:23:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 01:23:12 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp3.fr.adp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 08:23:10 +0000 Received: from exchange2k304.gaia.fr ([83.161.120.155]) by smtp3.fr.adp.com (xx/xx) with ESMTP id l918LZZS015777 for <dustinhughes@example.org>; Mon, 1 Oct 2007 10:21:45 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 1 Oct 2007 10:21:42 +0200 Message-ID: <dustinhughes@example.org> In-Reply-To: <dustinhughes@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] ProxyPassReverse not working as documented??? (Apache 2.2) Thread-Index: AcgCCMuGc0Wz0hfeRHe/2jwNHEdtKwB+upBw References: <dustinhughes@example.org> <dustinhughes@example.org> <dustinhughes@example.org> <dustinhughes@example.org> <dustinhughes@example.org> From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= <dustinhughes@example.org> To: <dustinhughes@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] ProxyPassReverse not working as documented??? (Apache 2.2) Whenever possible I try to avoid modifying the URL path when reverse = proxying. Then mod_proxy_html is not needed and you save some CPU = cycles. =20 <Location /flickr> ProxyPass http://www.flickr.com/flickr ProxyPassReverse http://www.flickr.com/flickr </Location> -ascs ________________________________ De : proteus guy [mailto:dustinhughes@example.org]=20 Envoy=E9 : vendredi 28 septembre 2007 21:50 =C0 : dustinhughes@example.org Objet : Re: [users@httpd] ProxyPassReverse not working as documented??? = (Apache 2.2) Thanx Joshua, I do have the mod_proxy_html going now and it works as expected. = You're right about "not rewriting URL references inside html" as being = pretty categorical - but we tend to see what we want to see and that = following sentence implied just what I was looking for so I was = perfectly capable of ignoring the prior inconvenient bit. :)=20 -- Ben On 9/29/07, Joshua Slive <dustinhughes@example.org> wrote:=20 Ok. Sorry for my slightly snarky response. But your problem is in the interpretation of the term "relative URL". This is referring to URLs that don't start with a slash, rather than URLs that don't start with=20 a hostname and scheme. And anyway, the sentence just before this says "nor will it rewrite URL references inside HTML pages", which is pretty clear and categorical in itself. =09 ---------------------------------------------------------------------=20 The official User-To-User support forum of the Apache HTTP Server = Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org = <mailto:dustinhughes@example.org>=20 For additional commands, e-mail: dustinhughes@example.org =09 =09 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org From dustinhughes@example.org Mon Oct 01 08:30:26 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 32544 invoked from network); 1 Oct 2007 08:30:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 08:30:26 -0000 Received: (qmail 42891 invoked by uid 500); 1 Oct 2007 08:30:06 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 42871 invoked by uid 500); 1 Oct 2007 08:30:05 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 42860 invoked by uid 99); 1 Oct 2007 08:30:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 01:30:05 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp3.fr.adp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 08:30:06 +0000 Received: from exchange2k304.gaia.fr ([83.161.120.155]) by smtp3.fr.adp.com (xx/xx) with ESMTP id l918SjxL019662 for <dustinhughes@example.org>; Mon, 1 Oct 2007 10:28:45 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 1 Oct 2007 10:28:44 +0200 Message-ID: <dustinhughes@example.org> In-Reply-To: <dustinhughes@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Basic mod_rewrite help Thread-Index: AcgCD9dxneKQuuMTSL63oYoalg/MiwB9OcWQ References: <dustinhughes@example.org> <dustinhughes@example.org> <dustinhughes@example.org> <dustinhughes@example.org> From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= <dustinhughes@example.org> To: <dustinhughes@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Basic mod_rewrite help If I may inject a related question here, I was recently surprised to = discover the order in which rewrite rules are evaluated when using = "RewriteOptions inherit" in a VH. It seems like the rewrite rules = included in the VH are evaluated before the ones that are inherited. Is that correct? Is there any way to control this behaviour? -ascs =20 -----Message d'origine----- De : dustinhughes@example.org [mailto:dustinhughes@example.org] De la part de Joshua = Slive Envoy=E9 : vendredi 28 septembre 2007 22:40 =C0 : dustinhughes@example.org Objet : Re: [users@httpd] Basic mod_rewrite help On 9/28/07, Israel Brewster <dustinhughes@example.org> wrote: > > > > On Sep 28, 2007, at 10:48 AM, Joshua Slive wrote: > > > On 9/28/07, Israel Brewster <dustinhughes@example.org> wrote: > > > >> which came with the default install. In order to implement the=20 > >> desired changes, I added the following lines: > > > > WHERE exactly did you add the lines? > > Oh, right, sorry, should have mentioned that. I inserted these lines=20 > at the end of the config file, outside of any configuration blocks. If the requests are being served by <VirtualHost>s, then you'll need to = read http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#vhosts (or simply place the directives inside the relevant <VirtualHost> = block). Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server = Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org From dustinhughes@example.org Mon Oct 01 08:38:46 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 34337 invoked from network); 1 Oct 2007 08:38:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 08:38:45 -0000 Received: (qmail 62351 invoked by uid 500); 1 Oct 2007 08:38:27 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 61405 invoked by uid 500); 1 Oct 2007 08:38:25 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 61394 invoked by uid 99); 1 Oct 2007 08:38:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 01:38:25 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mx1.post.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 08:38:27 +0000 Date: Mon, 1 Oct 2007 08:54:43 +0200 From: Christian Folini <dustinhughes@example.org> To: dustinhughes@example.org Message-ID: <dustinhughes@example.org> References: <014e01c803b4$edf6f300$c9e4d900$@com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <014e01c803b4$edf6f300$c9e4d900$@com> User-Agent: Mutt/1.5.9i X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] requests time-out under load, no warnings in logs Hey Alec, This looks like a tricky problem. Have you looked at the traffic using tcpdump or ethereal when the machine hangs? You might also try out mod_forensic or mod_security and add mod_security internal timestamps to the access-log. Using these logs you will get a clearer idea where it hangs. How does your apache look memory-wise in top/htop? Are you sure it is not an application issue - even if it shows serving static files. A reverse proxy setup for testing purposes could seperate application and static file serving to give you a clearer idea in this regard. These are just a lot of ideas. I do not really know how to solve your problem, but this would give you a clearer idea of the problem. I am not familiar with best practice values for MaxMemFree. regs, Christian On Sun, Sep 30, 2007 at 03:54:59PM -0700, Alec Matusis wrote: > We are running a busy Apache/2.0.54 server on 2.6.9 kernel, that suddenly > becomes very slow- requests either time out, or it takes 10s to serve a 1K > thumbnail. > It is usually correlated with load spikes, but not perfectly (by looking at > the bandwidth graph) > Then it requires a stop/start, and it becomes fast again. > This has been happening before, and it was always accompanied with > > [error] server reached MaxClients setting, consider raising the MaxClients > setting > > in the apache log. > > We raised MaxClients from 200 to 300, and now it happens with no warning > in any logs at all, except with the usual > > web10 kernel: possible SYN flooding on port 80. Sending cookies. in > /var/log/messages (this has always happened when apache hung from overload). > > What worries me is that there are no log messages in apache logs at all when > this happens. > > This is the relevant part of httpd.conf > > ServerLimit 300 > # we are using prefork MPM > <IfModule prefork.c> > StartServers 10 > MinSpareServers 5 > MaxSpareServers 20 > MaxClients 300 > MaxRequestsPerChild 10000 > MaxMemFree 2560 > </IfModule> > > The server has 4GB of RAM and 4GB of swap. When apache "crashes" i.e. > becomes very slow, the swap size is still 0 and vmstat shows no swapping. > I suspect the problem may be in > > MaxMemFree 2560 > > but then I would expect some kind of "out of memory" errors in the logs? > Another question: what is the good choice of MaxMemFree value? We want to > leave 512MB-1GB or RAM on this machine for other tasks. > > > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: dustinhughes@example.org > " from the digest: dustinhughes@example.org > For additional commands, e-mail: dustinhughes@example.org > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org From dustinhughes@example.org Mon Oct 01 08:40:02 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 34608 invoked from network); 1 Oct 2007 08:40:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 08:40:01 -0000 Received: (qmail 65261 invoked by uid 500); 1 Oct 2007 08:39:44 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 64712 invoked by uid 500); 1 Oct 2007 08:39:42 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 64701 invoked by uid 99); 1 Oct 2007 08:39:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 01:39:42 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp2.fr.adp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 08:39:42 +0000 Received: from exchange2k304.gaia.fr ([83.161.120.155]) by smtp2.fr.adp.com (xx/xx) with ESMTP id l918dJmX010659 for <dustinhughes@example.org>; Mon, 1 Oct 2007 10:39:19 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 1 Oct 2007 10:39:19 +0200 Message-ID: <dustinhughes@example.org> In-Reply-To: <dustinhughes@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Investigating high harddrive load Thread-Index: AcgCqsCX16R7mWiESmGojFI01TeZUQBWq8iA References: <!&!AAAAAAAAAAAYAAAAAAAAAA7E4VmldqBKrfJV0oWAYH3CgAAAEAAAAPaMNNRbwCZDgA9zafJMzZABAAAAAAdustinhughes@example.org> <dustinhughes@example.org> From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= <dustinhughes@example.org> To: <dustinhughes@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Investigating high harddrive load Somebody is probably reformatting your hard drive. No, seriously you need to provide a LOT more information about your = configuration for anyone to get the foggiest idea about what causes = this. What HW/OS? Are these disk reads or writes? What kind of modules do you = use? PHP or no PHP? etc. I once observed really poor performance on a server during a load test = due to disk IO and associated wait-times. The IO operations were disk = writes which was bizarre because nothing was supposed to be written to = disk. It turned out being mod_ssl writing to the DBM-based SSL session = cache. After changing it to shm the problem went away... -ascs =20 -----Message d'origine----- De : Samuel Vogel [mailto:dustinhughes@example.org]=20 Envoy=E9 : samedi 29 septembre 2007 17:09 =C0 : dustinhughes@example.org Objet : [users@httpd] Investigating high harddrive load Hey people, I would like to know if there is any way to debug what vhost is causing = the high load on my harddrive, that I'm experiencing. To be more specific: When I run "top", 80% of my CPU time is in i/o wait. How could I find = out, what vhost is causing this? Regards, Samy --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server = Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org From dustinhughes@example.org Mon Oct 01 08:58:01 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 37350 invoked from network); 1 Oct 2007 08:58:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 08:58:01 -0000 Received: (qmail 89525 invoked by uid 500); 1 Oct 2007 08:57:41 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 89515 invoked by uid 500); 1 Oct 2007 08:57:41 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 89504 invoked by uid 99); 1 Oct 2007 08:57:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 01:57:40 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp2.fr.adp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 08:57:41 +0000 Received: from exchange2k304.gaia.fr ([83.161.120.155]) by smtp2.fr.adp.com (xx/xx) with ESMTP id l918vINZ012038 for <dustinhughes@example.org>; Mon, 1 Oct 2007 10:57:19 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 1 Oct 2007 10:57:18 +0200 Message-ID: <dustinhughes@example.org> In-Reply-To: <dustinhughes@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] 83.161.120.155 access_log errors Thread-Index: AcgC6SW6cJHJSLBIR8q7GqwGSm4MkQBHufOQ References: <dustinhughes@example.org> <dustinhughes@example.org> <dustinhughes@example.org> <dustinhughes@example.org> <dustinhughes@example.org> From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= <dustinhughes@example.org> To: <dustinhughes@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] 83.161.120.155 access_log errors I explicitly set it to 0 for all of my servers. Never had a problem. In my mind setting it to anything different than zero would just be a = temporary hack to circumvent a bug in some module, particularly memory = leaks.=20 Various load tests I have made on Apache clearly show that restarting = processes has a significant impact on Apache performance. You definitely = do not want that to happen too often. On the other hand you are using MPM prefork, so the impact may not be = too severe... at least compared to what it would cost to fork new = processes to handle load surges. -ascs =20 -----Message d'origine----- De : Grant [mailto:dustinhughes@example.org]=20 Envoy=E9 : dimanche 30 septembre 2007 00:35 =C0 : dustinhughes@example.org Objet : Re: [users@httpd] 83.161.120.155 access_log errors > > Ok, thanks Joshua. Do these entries indicate that I might need to=20 > > make a change in my prefork settings? I'm currently using: > > > > StartServers 10 > > MinSpareServers 10 > > MaxSpareServers 20 > > MaxClients 256 > > MaxRequestsPerChild 100 > > No, those log messages rarely indicate any dustinhughes@example.org. But your=20 > MaxRequestsPerChild setting is pretty-low if you are interested in=20 > performance. Ok, would you use 0? I was concerned about a process going haywire = eventually. - Grant --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server = Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org From dustinhughes@example.org Mon Oct 01 09:01:37 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 39618 invoked from network); 1 Oct 2007 09:01:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 09:01:37 -0000 Received: (qmail 93661 invoked by uid 500); 1 Oct 2007 09:01:16 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 93651 invoked by uid 500); 1 Oct 2007 09:01:16 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 93640 invoked by uid 99); 1 Oct 2007 09:01:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 02:01:16 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp112.plus.mail.sp1.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 01 Oct 2007 09:01:17 +0000 Received: (qmail 49747 invoked from network); 1 Oct 2007 09:00:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:From:To:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=yRQZQdDZ8F7DQLD7wuzniXyTVmu/X2U1ylKqjWXbKKixbbRtZU25ies59oQq1VaMv+Lr/eDHrOXhM6kHaGI4Ni+F1homK3VMjTM4pxsZ1urzVCtDs3cfhQceshrRMeW9kY35cYqaPx6NWFqhF+xAo6eEiGUC4zFQ/+5k76gMDow= ; Received: from unknown (HELO T60) (dustinhughes@example.org with login) by smtp112.plus.mail.sp1.yahoo.com with SMTP; 1 Oct 2007 09:00:56 -0000 X-YMail-OSG: vcz251wVM1lV1y8kCZlfu0WKeSgua_TXCuNnc194oi7OQ6guxH88xLI2uRqrjpCQUlMqzbJCPWbT1NpOj0BFpkqtfnjHCDOuYqgWWtcHnSeTsOQFjfpbJFpxCJNL From: "Alec Matusis" <dustinhughes@example.org> To: <dustinhughes@example.org> References: <014e01c803b4$edf6f300$c9e4d900$@com> <dustinhughes@example.org> In-Reply-To: <dustinhughes@example.org> Date: Mon, 1 Oct 2007 02:00:25 -0700 Message-ID: <021801c80409$82177010$86465030$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcgEBnk2ZJ7L9xjCRue35AMB35wVxAAAMIEQ Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] requests time-out under load, no warnings in logs Hi Christian,=20 > How does your apache look memory-wise in top/htop? When Apache is "slow", it has about 200 processes with 11-15MB RSS each, = soat least 1GB of physical RAM should be unused. The load average drops from normal 16.0 (this is a 4 CPU machine) to = only 6.0 when apache becomes "slow". It would be interesting to see an example of a reasonable choice for = MaxMemFree, after 2 days of searching in Google I cannot find any = guidelines for setting it.=20 > -----Original Message----- > From: Christian Folini [mailto:dustinhughes@example.org] > Sent: Sunday, September 30, 2007 11:55 PM > To: dustinhughes@example.org > Subject: Re: [users@httpd] requests time-out under load, no warnings = in > logs >=20 > Hey Alec, >=20 > This looks like a tricky problem. Have you looked at the traffic > using tcpdump or ethereal when the machine hangs? You might > also try out mod_forensic or mod_security and add mod_security > internal timestamps to the access-log. Using these logs you will > get a clearer idea where it hangs. >=20 > How does your apache look memory-wise in top/htop? > Are you sure it is not an application issue - even if it shows > serving static files. A reverse proxy setup for testing purposes > could seperate application and static file serving to > give you a clearer idea in this regard. >=20 > These are just a lot of ideas. I do not really know how to > solve your problem, but this would give you a clearer idea > of the problem. >=20 > I am not familiar with best practice values for MaxMemFree. >=20 > regs, >=20 > Christian >=20 >=20 >=20 > On Sun, Sep 30, 2007 at 03:54:59PM -0700, Alec Matusis wrote: > > We are running a busy Apache/2.0.54 server on 2.6.9 kernel, that > suddenly > > becomes very slow- requests either time out, or it takes 10s to = serve > a 1K > > thumbnail. > > It is usually correlated with load spikes, but not perfectly (by > looking at > > the bandwidth graph) > > Then it requires a stop/start, and it becomes fast again. > > This has been happening before, and it was always accompanied with > > > > [error] server reached MaxClients setting, consider raising the > MaxClients > > setting > > > > in the apache log. > > > > We raised MaxClients from 200 to 300, and now it happens with no > warning > > in any logs at all, except with the usual > > > > web10 kernel: possible SYN flooding on port 80. Sending cookies. in > > /var/log/messages (this has always happened when apache hung from > overload). > > > > What worries me is that there are no log messages in apache logs at > all when > > this happens. > > > > This is the relevant part of httpd.conf > > > > ServerLimit 300 > > # we are using prefork MPM > > <IfModule prefork.c> > > StartServers 10 > > MinSpareServers 5 > > MaxSpareServers 20 > > MaxClients 300 > > MaxRequestsPerChild 10000 > > MaxMemFree 2560 > > </IfModule> > > > > The server has 4GB of RAM and 4GB of swap. When apache "crashes" = i.e. > > becomes very slow, the swap size is still 0 and vmstat shows no > swapping. > > I suspect the problem may be in > > > > MaxMemFree 2560 > > > > but then I would expect some kind of "out of memory" errors in the > logs? > > Another question: what is the good choice of MaxMemFree value? We > want to > > leave 512MB-1GB or RAM on this machine for other tasks. > > > > > > > > > > > > = --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP Server > Project. > > See <URL:http://httpd.apache.org/userslist.html> for more info. > > To unsubscribe, e-mail: dustinhughes@example.org > > " from the digest: dustinhughes@example.org > > For additional commands, e-mail: dustinhughes@example.org > > >=20 > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: dustinhughes@example.org > " from the digest: dustinhughes@example.org > For additional commands, e-mail: dustinhughes@example.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org From dustinhughes@example.org Mon Oct 01 10:15:57 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 57287 invoked from network); 1 Oct 2007 10:15:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 10:15:56 -0000 Received: (qmail 86967 invoked by uid 500); 1 Oct 2007 10:15:33 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 86945 invoked by uid 500); 1 Oct 2007 10:15:33 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 86934 invoked by uid 99); 1 Oct 2007 10:15:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 03:15:33 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dustinhughes@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nz-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 10:15:34 +0000 Received: by nz-out-0506.google.com with SMTP id i1so2459209nzh for <dustinhughes@example.org>; Mon, 01 Oct 2007 03:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=mGjxbKJUouVtashQT1r4hjj2MeImRRRoIhh3IO8djmM=; b=M0z1hV8ZsvkqZA+K79daiwTzgMXgh9idBPAYM672AnoOqxt3OkN6va77HucjjrE0OZl+ZMkKdA5lTZ4HjOVrzYjgWTzIAI9prsTxB5kza7TscqgHwSFRiUqwbMIy+pL2oi5MIfyrwlNyLNg1knILeF1EjppGvd/dzV9xJ/NZGbQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rpD7tv5Tqoy8Vxa+5rw3ossyScVhi5TRxm9VDj39cNCYWp6my7T1F48I0EuoAaFjS5lDgRFKtp91665Mm4KdW6DLXA2IRNrAmTppkVULYT249su0jFiIxD6ugtLmKkttGiJyNTFWrNla/VsDsv2HoMZodQWCdgwZZBP5s3/E2hk= Received: by 83.161.120.155 with SMTP id z17mr402522wad.1191233712635; Mon, 01 Oct 2007 03:15:12 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 1 Oct 2007 03:15:12 -0700 (PDT) Message-ID: <dustinhughes@example.org> Date: Mon, 1 Oct 2007 12:15:12 +0200 From: Bj <dustinhughes@example.org> To: dustinhughes@example.org In-Reply-To: <021801c80409$82177010$86465030$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5919_15599501.1191233712628" References: <014e01c803b4$edf6f300$c9e4d900$@com> <dustinhughes@example.org> <021801c80409$82177010$86465030$@com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] requests time-out under load, no warnings in logs ------=_Part_5919_15599501.1191233712628 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, When your server is slow: - how is your iowait ? maybe apache is waiting for disk access. - are your sure that you don't have a network bottleneck ? load balancer, firewall, network interface,.. - do you serve static files only with you apache ? if you use php, cgi,mod_jk,mysql,... You should have a look to them maybe they are hanging up. - if you use thread safe modules (not php) and if you have to serve a lot of little requests, maybe you can consider to use mpm worker instead of prefork. -- Bj On 10/1/07, Alec Matusis <dustinhughes@example.org> wrote: > > Hi Christian, > > > How does your apache look memory-wise in top/htop? > > When Apache is "slow", it has about 200 processes with 11-15MB RSS each, > soat least 1GB of physical RAM should be unused. > The load average drops from normal 16.0 (this is a 4 CPU machine) to only > 6.0 when apache becomes "slow". > > > It would be interesting to see an example of a reasonable choice for > MaxMemFree, after 2 days of searching in Google I cannot find any guidelines > for setting it. > > > > > -----Original Message----- > > From: Christian Folini [mailto:dustinhughes@example.org] > > Sent: Sunday, September 30, 2007 11:55 PM > > To: dustinhughes@example.org > > Subject: Re: [users@httpd] requests time-out under load, no warnings in > > logs > > > > Hey Alec, > > > > This looks like a tricky problem. Have you looked at the traffic > > using tcpdump or ethereal when the machine hangs? You might > > also try out mod_forensic or mod_security and add mod_security > > internal timestamps to the access-log. Using these logs you will > > get a clearer idea where it hangs. > > > > How does your apache look memory-wise in top/htop? > > Are you sure it is not an application issue - even if it shows > > serving static files. A reverse proxy setup for testing purposes > > could seperate application and static file serving to > > give you a clearer idea in this regard. > > > > These are just a lot of ideas. I do not really know how to > > solve your problem, but this would give you a clearer idea > > of the problem. > > > > I am not familiar with best practice values for MaxMemFree. > > > > regs, > > > > Christian > > > > > > > > On Sun, Sep 30, 2007 at 03:54:59PM -0700, Alec Matusis wrote: > > > We are running a busy Apache/2.0.54 server on 2.6.9 kernel, that > > suddenly > > > becomes very slow- requests either time out, or it takes 10s to serve > > a 1K > > > thumbnail. > > > It is usually correlated with load spikes, but not perfectly (by > > looking at > > > the bandwidth graph) > > > Then it requires a stop/start, and it becomes fast again. > > > This has been happening before, and it was always accompanied with > > > > > > [error] server reached MaxClients setting, consider raising the > > MaxClients > > > setting > > > > > > in the apache log. > > > > > > We raised MaxClients from 200 to 300, and now it happens with no > > warning > > > in any logs at all, except with the usual > > > > > > web10 kernel: possible SYN flooding on port 80. Sending cookies. in > > > /var/log/messages (this has always happened when apache hung from > > overload). > > > > > > What worries me is that there are no log messages in apache logs at > > all when > > > this happens. > > > > > > This is the relevant part of httpd.conf > > > > > > ServerLimit 300 > > > # we are using prefork MPM > > > <IfModule prefork.c> > > > StartServers 10 > > > MinSpareServers 5 > > > MaxSpareServers 20 > > > MaxClients 300 > > > MaxRequestsPerChild 10000 > > > MaxMemFree 2560 > > > </IfModule> > > > > > > The server has 4GB of RAM and 4GB of swap. When apache "crashes" i.e. > > > becomes very slow, the swap size is still 0 and vmstat shows no > > swapping. > > > I suspect the problem may be in > > > > > > MaxMemFree 2560 > > > > > > but then I would expect some kind of "out of memory" errors in the > > logs? > > > Another question: what is the good choice of MaxMemFree value? We > > want to > > > leave 512MB-1GB or RAM on this machine for other tasks. > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > The official User-To-User support forum of the Apache HTTP Server > > Project. > > > See <URL:http://httpd.apache.org/userslist.html> for more info. > > > To unsubscribe, e-mail: dustinhughes@example.org > > > " from the digest: dustinhughes@example.org > > > For additional commands, e-mail: dustinhughes@example.org > > > > > > > --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP Server > > Project. > > See <URL:http://httpd.apache.org/userslist.html> for more info. > > To unsubscribe, e-mail: dustinhughes@example.org > > " from the digest: dustinhughes@example.org > > For additional commands, e-mail: dustinhughes@example.org > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: dustinhughes@example.org > " from the digest: dustinhughes@example.org > For additional commands, e-mail: dustinhughes@example.org > > ------=_Part_5919_15599501.1191233712628 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <br>Hi,<br><br>When your server is slow: <br>&nbsp;&nbsp;&nbsp;- how is your iowait ?&nbsp;maybe&nbsp;apache&nbsp;is&nbsp;waiting&nbsp;for&nbsp;disk&nbsp;access. <br>&nbsp;&nbsp;&nbsp;- are your sure that you don&#39;t have a network bottleneck ? load balancer, firewall, network interface,.. <br>&nbsp;&nbsp;- do you&nbsp;serve&nbsp;static&nbsp;files&nbsp;only&nbsp;with&nbsp;you&nbsp;apache&nbsp;?&nbsp;if&nbsp;you&nbsp;use&nbsp;php,&nbsp;cgi,mod_jk,mysql,... You&nbsp;should&nbsp;have&nbsp;a&nbsp;look&nbsp;to&nbsp;them maybe they are hanging up.<br> &nbsp;&nbsp;- if you use thread safe modules (not php) and if you have to serve a lot of little requests, maybe you can consider to use mpm worker instead of prefork. <br><br>-- <br>Bj<br><br><br><div><span class="gmail_quote">On 10/1/07, <b class="gmail_sendername">Alec Matusis</b> &lt;<a href="mailto:dustinhughes@example.org">dustinhughes@example.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex"> Hi Christian,<br><br>&gt; How does your apache look memory-wise in top/htop?<br><br>When Apache is &quot;slow&quot;, it has about 200 processes with 11-15MB RSS each, soat least 1GB of physical RAM should be unused.<br>The load average drops from normal 16.0 (this is a 4 CPU machine) to only 6.0 when apache becomes &quot;slow&quot;.<br><br><br>It would be interesting to see an example of a reasonable choice for MaxMemFree, after 2 days of searching in Google I cannot find any guidelines for setting it. <br><br><br><br>&gt; -----Original Message-----<br>&gt; From: Christian Folini [mailto:<a href="mailto:dustinhughes@example.org">dustinhughes@example.org</a>]<br>&gt; Sent: Sunday, September 30, 2007 11:55 PM<br>&gt; To: <a href="mailto:dustinhughes@example.org">dustinhughes@example.org</a><br>&gt; Subject: Re: [users@httpd] requests time-out under load, no warnings in<br>&gt; logs<br>&gt;<br>&gt; Hey Alec,<br>&gt;<br>&gt; This looks like a tricky problem. Have you looked at the traffic <br>&gt; using tcpdump or ethereal when the machine hangs? You might<br>&gt; also try out mod_forensic or mod_security and add mod_security<br>&gt; internal timestamps to the access-log. Using these logs you will<br>&gt; get a clearer idea where it hangs. <br>&gt;<br>&gt; How does your apache look memory-wise in top/htop?<br>&gt; Are you sure it is not an application issue - even if it shows<br>&gt; serving static files. A reverse proxy setup for testing purposes<br>&gt; could seperate application and static file serving to <br>&gt; give you a clearer idea in this regard.<br>&gt;<br>&gt; These are just a lot of ideas. I do not really know how to<br>&gt; solve your problem, but this would give you a clearer idea<br>&gt; of the problem.<br>&gt; <br>&gt; I am not familiar with best practice values for MaxMemFree.<br>&gt;<br>&gt; regs,<br>&gt;<br>&gt; Christian<br>&gt;<br>&gt;<br>&gt;<br>&gt; On Sun, Sep 30, 2007 at 03:54:59PM -0700, Alec Matusis wrote:<br>&gt; &gt; We are running a busy Apache/2.0.54 server on 2.6.9 kernel, that<br>&gt; suddenly<br>&gt; &gt; becomes very slow- requests either time out, or it takes 10s to serve<br>&gt; a 1K<br>&gt; &gt; thumbnail.<br>&gt; &gt; It is usually correlated with load spikes, but not perfectly (by <br>&gt; looking at<br>&gt; &gt; the bandwidth graph)<br>&gt; &gt; Then it requires a stop/start, and it becomes fast again.<br>&gt; &gt; This has been happening before, and it was always accompanied with<br>&gt; &gt;<br> &gt; &gt; [error] server reached MaxClients setting, consider raising the<br>&gt; MaxClients<br>&gt; &gt; setting<br>&gt; &gt;<br>&gt; &gt; in the apache log.<br>&gt; &gt;<br>&gt; &gt; We raised MaxClients&nbsp;&nbsp;&nbsp;&nbsp;from 200 to 300, and now it happens with no <br>&gt; warning<br>&gt; &gt; in any logs at all, except with the usual<br>&gt; &gt;<br>&gt; &gt; web10 kernel: possible SYN flooding on port 80. Sending cookies. in<br>&gt; &gt; /var/log/messages (this has always happened when apache hung from <br>&gt; overload).<br>&gt; &gt;<br>&gt; &gt; What worries me is that there are no log messages in apache logs at<br>&gt; all when<br>&gt; &gt; this happens.<br>&gt; &gt;<br>&gt; &gt; This is the relevant part of httpd.conf <br>&gt; &gt;<br>&gt; &gt; ServerLimit 300<br>&gt; &gt; # we are using prefork MPM<br>&gt; &gt; &lt;IfModule prefork.c&gt;<br>&gt; &gt; StartServers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10<br>&gt; &gt; MinSpareServers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5<br>&gt; &gt; MaxSpareServers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 20 <br>&gt; &gt; MaxClients&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;300<br>&gt; &gt; MaxRequestsPerChild&nbsp;&nbsp; 10000<br>&gt; &gt; MaxMemFree&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2560<br>&gt; &gt; &lt;/IfModule&gt;<br>&gt; &gt;<br>&gt; &gt; The server has 4GB of RAM and 4GB of swap. When apache &quot;crashes&quot; i.e.<br>&gt; &gt; becomes very slow, the swap size is still 0 and vmstat shows no<br>&gt; swapping.<br>&gt; &gt; I suspect the problem may be in<br>&gt; &gt;<br>&gt; &gt; MaxMemFree&nbsp;&nbsp; 2560<br>&gt; &gt;<br>&gt; &gt; but then I would expect some kind of &quot;out of memory&quot; errors in the <br>&gt; logs?<br>&gt; &gt; Another question: what is the good choice of MaxMemFree value? We<br>&gt; want to<br>&gt; &gt; leave 512MB-1GB or RAM on this machine for other tasks.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br> &gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ---------------------------------------------------------------------<br>&gt; &gt; The official User-To-User support forum of the Apache HTTP Server<br>&gt; Project.<br>&gt; &gt; See &lt;URL: <a href="http://httpd.apache.org/userslist.html">http://httpd.apache.org/userslist.html</a>&gt; for more info.<br>&gt; &gt; To unsubscribe, e-mail: <a href="mailto:dustinhughes@example.org">dustinhughes@example.org </a><br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&quot;&nbsp;&nbsp; from the digest: <a href="mailto:dustinhughes@example.org">dustinhughes@example.org</a><br>&gt; &gt; For additional commands, e-mail: <a href="mailto:dustinhughes@example.org"> dustinhughes@example.org</a><br>&gt; &gt;<br>&gt;<br>&gt; ---------------------------------------------------------------------<br>&gt; The official User-To-User support forum of the Apache HTTP Server<br>&gt; Project. <br>&gt; See &lt;URL:<a href="http://httpd.apache.org/userslist.html">http://httpd.apache.org/userslist.html</a>&gt; for more info.<br>&gt; To unsubscribe, e-mail: <a href="mailto:dustinhughes@example.org">dustinhughes@example.org </a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&quot;&nbsp;&nbsp; from the digest: <a href="mailto:dustinhughes@example.org">dustinhughes@example.org</a><br>&gt; For additional commands, e-mail: <a href="mailto:dustinhughes@example.org"> dustinhughes@example.org</a><br><br><br>---------------------------------------------------------------------<br>The official User-To-User support forum of the Apache HTTP Server Project.<br>See &lt;URL:<a href="http://httpd.apache.org/userslist.html"> http://httpd.apache.org/userslist.html</a>&gt; for more info.<br>To unsubscribe, e-mail: <a href="mailto:dustinhughes@example.org">dustinhughes@example.org</a><br>&nbsp;&nbsp; &quot;&nbsp;&nbsp; from the digest: <a href="mailto:dustinhughes@example.org"> dustinhughes@example.org</a><br>For additional commands, e-mail: <a href="mailto:dustinhughes@example.org">dustinhughes@example.org</a><br><br></blockquote></div><br> ------=_Part_5919_15599501.1191233712628-- From dustinhughes@example.org Mon Oct 01 13:31:44 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 48859 invoked from network); 1 Oct 2007 13:31:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 13:31:43 -0000 Received: (qmail 21508 invoked by uid 500); 1 Oct 2007 13:31:23 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 21483 invoked by uid 500); 1 Oct 2007 13:31:22 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 21472 invoked by uid 99); 1 Oct 2007 13:31:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 06:31:22 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dustinhughes@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO an-out-0708.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 13:31:24 +0000 Received: by an-out-0708.google.com with SMTP id b15so659736ana for <dustinhughes@example.org>; Mon, 01 Oct 2007 06:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=N1QHzABKPrBxR6hCisIHY0wdRFtGUjRQIUXjp8Atdz4=; b=NIxgLXVsXvSbrAuyRdElgotw2rJOlYQ715TSov9opXFLW6vrWa7cMywicna7n9axe4/B/jk35cGiBPv0fZftbvRjqof3JP5ne/CIbNdPPxtNk1ZTzcF9Lzu2wsrAGKsokJ65XFB46agrMGCgCpN0b7S8+cy05bfwg27SGJim/qM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=UYlMKioOPePWgK30/B3IQlt48g3Gj+js9/HV2RMI17OKH7YzLcQp5c+cZSg+Vr0N8j/oTvRu0mUR+Vh8a0x8jX3zrFTrbgSbFh9j675plwVMOg/woif7OzihcOqUebqjxbPZvyuLbYh5R0j4nxZIaOcQ2opAIKc3obbPDMVGGqM= Received: by 83.161.120.155 with SMTP id q1mr4068508wae.1191245463222; Mon, 01 Oct 2007 06:31:03 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 1 Oct 2007 06:31:03 -0700 (PDT) Message-ID: <dustinhughes@example.org> Date: Mon, 1 Oct 2007 15:31:03 +0200 From: Bj <dustinhughes@example.org> To: dustinhughes@example.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6596_14335948.1191245463207" X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] backlog ------=_Part_6596_14335948.1191245463207 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Does someone know how to get the number of requests pending in the backlog ? I didn't find interesting information in /proc/... Regards, -- Bj ------=_Part_6596_14335948.1191245463207 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,<br><br>Does someone know how to get the number of requests pending in the backlog ? <br>I didn&#39;t find interesting information in /proc/...<br><br>Regards,<br><br>-- <br>Bj<br> ------=_Part_6596_14335948.1191245463207-- From dustinhughes@example.org Mon Oct 01 13:37:23 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 50730 invoked from network); 1 Oct 2007 13:37:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 13:37:23 -0000 Received: (qmail 34599 invoked by uid 500); 1 Oct 2007 13:37:02 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 34390 invoked by uid 500); 1 Oct 2007 13:37:01 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 34379 invoked by uid 99); 1 Oct 2007 13:37:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 06:37:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO unclebob.obfuscated.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 13:37:00 +0000 Received: from [83.161.120.155] (pool-96-228-136-165.tampfl.fios.verizon.net [83.161.120.155]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by unclebob.obfuscated.net (Postfix) with ESMTP id 5F54017077 for <dustinhughes@example.org>; Mon, 1 Oct 2007 09:36:08 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <dustinhughes@example.org> References: <dustinhughes@example.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <dustinhughes@example.org> Content-Transfer-Encoding: 7bit From: Michael Conlen <dustinhughes@example.org> Date: Mon, 1 Oct 2007 09:36:00 -0400 To: dustinhughes@example.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] backlog Try the server-status page. -- Michael Conlen On Oct 1, 2007, at 9:31 AM, Bj wrote: > Hi, > > Does someone know how to get the number of requests pending in the > backlog ? > I didn't find interesting information in /proc/... > > Regards, > > -- > Bj --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org From dustinhughes@example.org Mon Oct 01 13:45:17 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 52520 invoked from network); 1 Oct 2007 13:45:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 13:45:17 -0000 Received: (qmail 55446 invoked by uid 500); 1 Oct 2007 13:44:57 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 55433 invoked by uid 500); 1 Oct 2007 13:44:57 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 55422 invoked by uid 99); 1 Oct 2007 13:44:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 06:44:57 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dustinhughes@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nz-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 13:44:58 +0000 Received: by nz-out-0506.google.com with SMTP id i1so2507787nzh for <dustinhughes@example.org>; Mon, 01 Oct 2007 06:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=OqnNGtB40WLfQpP0evKg+ur6oCVtdnXL2+JTQ12SSZQ=; b=CDON3OBDeYAEmBSt2GMrBwi++Kg8f8XC1q3V2Pj2Ykkf4ChyYsiUlerG8CdYWOc+COw3sN4xiXiL4TODa/rSPsSaIqDX7o3ZqTBftHW8eNEtpkWWj7M5Ldc0Oh3vtsuPk4FJ4mRaW4/9G9pSWIzLuNrC8TRMFIj4mxo5j0XSAM0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Cv1Z8f0kkku3sCzRLsLIs0ACjIxf3wCdIvAOrROMxzXcOt13h2RU1g3jkNNTeVqeObdVzjtjoADGdy23uOmSOIH/SPBfDw2nVq/xPqQT8oa5Oy8dz/07sfTPF0qN3abdPcOh1caLYJa5/IVNBwzA6Xnn8yDeBjUSctt2x5YvOSc= Received: by 83.161.120.155 with SMTP id d1mr556516waf.1191246276899; Mon, 01 Oct 2007 06:44:36 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 1 Oct 2007 06:44:36 -0700 (PDT) Message-ID: <dustinhughes@example.org> Date: Mon, 1 Oct 2007 15:44:36 +0200 From: Bj <dustinhughes@example.org> To: dustinhughes@example.org In-Reply-To: <dustinhughes@example.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6655_6973505.1191246276863" References: <dustinhughes@example.org> <dustinhughes@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] backlog ------=_Part_6655_6973505.1191246276863 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline This information isn't there. Backlog is managed by system so i think it's at system level that i have to search. -- Bj On 10/1/07, Michael Conlen <dustinhughes@example.org> wrote: > > Try the server-status page. > > -- > Michael Conlen > > On Oct 1, 2007, at 9:31 AM, Bj wrote: > > > Hi, > > > > Does someone know how to get the number of requests pending in the > > backlog ? > > I didn't find interesting information in /proc/... > > > > Regards, > > > > -- > > Bj > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: dustinhughes@example.org > " from the digest: dustinhughes@example.org > For additional commands, e-mail: dustinhughes@example.org > > ------=_Part_6655_6973505.1191246276863 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline This information isn&#39;t there.<br>Backlog is managed by system so i think it&#39;s at system level that i have to search.<br><br>--&nbsp; <br>Bj<br><br><div><span class="gmail_quote">On 10/1/07, <b class="gmail_sendername">Michael Conlen </b> &lt;<a href="mailto:dustinhughes@example.org">dustinhughes@example.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex"> Try the server-status page.<br><br>--<br>Michael Conlen<br><br>On Oct 1, 2007, at 9:31 AM, Bj wrote:<br><br>&gt; Hi,<br>&gt;<br>&gt; Does someone know how to get the number of requests pending in the<br>&gt; backlog ?<br> &gt; I didn&#39;t find interesting information in /proc/...<br>&gt;<br>&gt; Regards,<br>&gt;<br>&gt; --<br>&gt; Bj<br><br><br>---------------------------------------------------------------------<br>The official User-To-User support forum of the Apache HTTP Server Project. <br>See &lt;URL:<a href="http://httpd.apache.org/userslist.html">http://httpd.apache.org/userslist.html</a>&gt; for more info.<br>To unsubscribe, e-mail: <a href="mailto:dustinhughes@example.org">dustinhughes@example.org </a><br>&nbsp;&nbsp; &quot;&nbsp;&nbsp; from the digest: <a href="mailto:dustinhughes@example.org">dustinhughes@example.org</a><br>For additional commands, e-mail: <a href="mailto:dustinhughes@example.org"> dustinhughes@example.org</a><br><br></blockquote></div><br> ------=_Part_6655_6973505.1191246276863-- From dustinhughes@example.org Mon Oct 01 13:45:52 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 52739 invoked from network); 1 Oct 2007 13:45:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 13:45:52 -0000 Received: (qmail 60046 invoked by uid 500); 1 Oct 2007 13:45:32 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 60024 invoked by uid 500); 1 Oct 2007 13:45:32 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 60013 invoked by uid 99); 1 Oct 2007 13:45:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 06:45:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dustinhughes@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nz-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 13:45:34 +0000 Received: by nz-out-0506.google.com with SMTP id i1so2507787nzh for <dustinhughes@example.org>; Mon, 01 Oct 2007 06:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=VYkjwI3nYy7jTaWsffA6CFUPgZKco5q6n4Mc1u1h1z0=; b=T10VOSn5Aty+R/3xiRshtRj+P5xGnFqzY9Ix65OSTi93to+Xin6tI5pGUrFnOUBkTv8Rd7cRMle67PHOfv3tPmEN8xblJicS3JRAPAC7urpJT4n0a/uhNufMyRxDAYc+YXISx0XUsPWRJ1hXVIqRDkqKLM7TGW0S/GjNTqdPEbQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=j5vDBk0cxZtrfmBBsTGsNCCjK2TI9gbc+5n/NI1kcU1z8jl6US6vnrHmwKMGGyDttLzWigSMrDf0PDXuNaEeTZ5vA3VYNnMuJWPRV7BAV3FNBnguVeVDzqB6UlVHVuYpUdcaJQfSyk8IH2Q6iI6uQqqJ2Z1ZtY7rcREZYf+KQpw= Received: by 83.161.120.155 with SMTP id h1mr667915wac.1191246312107; Mon, 01 Oct 2007 06:45:12 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 1 Oct 2007 06:45:12 -0700 (PDT) Message-ID: <dustinhughes@example.org> Date: Mon, 1 Oct 2007 09:45:12 -0400 From: "Joshua Slive" <dustinhughes@example.org> Sender: dustinhughes@example.org To: dustinhughes@example.org In-Reply-To: <dustinhughes@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <dustinhughes@example.org> X-Google-Sender-Auth: 2ad0d65658e91746 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] backlog On 10/1/07, Bj <dustinhughes@example.org> wrote: > Hi, > > Does someone know how to get the number of requests pending in the backlog ? > I didn't find interesting information in /proc/... If you're talking about the listen backlog, the info should be available through netstat, although I couldn't tell you the exact options to use. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org From dustinhughes@example.org Mon Oct 01 14:26:31 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 66071 invoked from network); 1 Oct 2007 14:26:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 14:26:30 -0000 Received: (qmail 42950 invoked by uid 500); 1 Oct 2007 14:23:14 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 42938 invoked by uid 500); 1 Oct 2007 14:23:14 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 42926 invoked by uid 99); 1 Oct 2007 14:23:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 07:23:14 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO grimnir.webthing.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 14:23:14 +0000 Received: from grimnir.webthing.com (localhost [83.161.120.155]) by grimnir.webthing.com (Postfix) with ESMTP id 84F6B2146 for <dustinhughes@example.org>; Mon, 1 Oct 2007 15:22:22 +0100 (BST) Date: Mon, 1 Oct 2007 15:22:22 +0100 From: Nick Kew <dustinhughes@example.org> To: dustinhughes@example.org Message-ID: <20071001152222.2b898f09@grimnir> In-Reply-To: <dustinhughes@example.org> References: <dustinhughes@example.org> <dustinhughes@example.org> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] backlog On Mon, 1 Oct 2007 09:45:12 -0400 "Joshua Slive" <dustinhughes@example.org> wrote: > On 10/1/07, Bj <dustinhughes@example.org> wrote: > > Hi, > > > > Does someone know how to get the number of requests pending in the > > backlog ? I didn't find interesting information in /proc/... > > If you're talking about the listen backlog, the info should be > available through netstat, although I couldn't tell you the exact > options to use. Neither could I, and I expect it would be system-dependent. If you're getting a backlog, it probably means you should reconfigure it. In particular, switching MPM can help. ObPedant: you don't have a backlog of requests. Only connections. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: dustinhughes@example.org " from the digest: dustinhughes@example.org For additional commands, e-mail: dustinhughes@example.org From dustinhughes@example.org Mon Oct 01 14:57:46 2007 Return-Path: <dustinhughes@example.org> Delivered-To: dustinhughes@example.org Received: (qmail 76337 invoked from network); 1 Oct 2007 14:57:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2007 14:57:45 -0000 Received: (qmail 19386 invoked by uid 500); 1 Oct 2007 14:57:25 -0000 Delivered-To: dustinhughes@example.org Received: (qmail 19362 invoked by uid 500); 1 Oct 2007 14:57:25 -0000 Mailing-List: contact dustinhughes@example.org; run by ezmlm Precedence: bulk Reply-To: dustinhughes@example.org list-help: <mailto:dustinhughes@example.org> list-unsubscribe: <mailto:dustinhughes@example.org> List-Post: <mailto:dustinhughes@example.org> List-Id: <users.httpd.apache.org> Delivered-To: mailing list dustinhughes@example.org Received: (qmail 19351 invoked by uid 99); 1 Oct 2007 14:57:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 07:57:25 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dustinhughes@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nf-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 14:57:27 +0000 Received: by nf-out-0910.google.com with SMTP id c10so2356521nfd for <dustinhughes@example.org>; Mon, 01
{'source': 'Apache Software Foundation Public Mail Archives'}