From bugs-return-31978-apmail-httpd-bugs-archive=httpd.apache.org@httpd.apache.org Sun Dec 14 09:12:08 2008 Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 13118 invoked from network); 14 Dec 2008 09:12:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2008 09:12:08 -0000 Received: (qmail 64824 invoked by uid 500); 14 Dec 2008 09:12:20 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 64786 invoked by uid 500); 14 Dec 2008 09:12:20 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 64777 invoked by uid 99); 14 Dec 2008 09:12:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2008 01:12:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2008 09:12:07 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 40D98234C33D; Sun, 14 Dec 2008 01:11:47 -0800 (PST) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 46282] apache2.2 reverse proxy causing full memory and swap X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: mod_proxy X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sf@sfritsch.de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20081214091147.40D98234C33D@brutus.apache.org> Date: Sun, 14 Dec 2008 01:11:47 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=46282 --- Comment #3 from Stefan Fritsch 2008-12-14 01:11:46 PST --- This looks like apache uses about 120MB of memory to store a few thousand config directives and the corresponding compiled regular expressions, i.e. on the order of 10K per directive (depending on how many 'a few' is). This doesn't look optimal but is probably acceptable. However, regardless of the used memory, your configuration will allways be dead slow because apache has to do thousands of regexp matches for every request. Use some more efficient configuration (e.g. with mod_rewrite and RewriteMaps) instead. If you have problems implementing this, ask on some support mailing list. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org