httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46282] New: apache2.2 reverse proxy causing full memory and swap
Date Tue, 25 Nov 2008 00:44:28 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46282

           Summary: apache2.2 reverse proxy causing full memory and swap
           Product: Apache httpd-2
           Version: 2.2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: drew@thewithers.org


I'm running Debian Lenny with Apache mpm prefork 2.2.9-10 on x86. I have it set
up as a reverse proxy for a few thousand user directories as well as some
virtual hosts. When I have reverse proxy enabled for all of these, a single
request to my server causes apache to fill up the ram and start swapping until
swap is full. This doesn't happen when I disable proxying to the user
directories. It also doesn't happen upon loading apache. Only after the first
request is processed. It doesn't cause apache to crash but it makes it go very
slowly.

Here is a small portion of the config:
ProxyPassMatch ^/~es44(/.*)?$ http://www.et.byu.edu/~es44$1
ProxyPassReverse /~es44 http://www.et.byu.edu/~es44
ProxyPassMatch ^/~bdefig(/.*)?$ http://www.et.byu.edu/~bdefig$1
ProxyPassReverse /~bdefig http://www.et.byu.edu/~bdefig
ProxyPassMatch ^/~rmariana(/.*)?$ http://www.et.byu.edu/~rmariana$1
ProxyPassReverse /~rmariana http://www.et.byu.edu/~rmariana
ProxyPassMatch ^/~scornwel(/.*)?$ http://www.et.byu.edu/~scornwel$1
ProxyPassReverse /~scornwel http://www.et.byu.edu/~scornwel
ProxyPassMatch ^/~gkh3(/.*)?$ http://www.et.byu.edu/~gkh3$1
ProxyPassReverse /~gkh3 http://www.et.byu.edu/~gkh3
ProxyPassMatch ^/~camoo(/.*)?$ http://www.et.byu.edu/~camoo$1
ProxyPassReverse /~camoo http://www.et.byu.edu/~camoo
ProxyPassMatch ^/~karhu(/.*)?$ http://www.et.byu.edu/~karhu$1
ProxyPassReverse /~karhu http://www.et.byu.edu/~karhu
ProxyPassMatch ^/~websterb(/.*)?$ http://www.et.byu.edu/~websterb$1
ProxyPassReverse /~websterb http://www.et.byu.edu/~websterb

There are few thousand of user directories configured in this manner.
There isn't anything special I do for this setup. I enabled proxy and
proxy_http. I use the ssl proxy engine and I have ProxyRequests turned off and
ProxyVia On

The problem goes away when I remove all the specific entries for user
directories and replace them with:
ProxyPass /~ http://www.et.byu.edu/~
ProxyPassReverse /~ http://www.et.byu.edu/~


-- 
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


Mime
View raw message