[PATCH] Excessive memory use with "SVNPathAuthz short_circuit"
From: Roderich Schupp <roderich.schupp_at_gmail.com>
Date: Tue, 18 Sep 2012 12:50:07 +0200
Hi,
recently our production Subversion servers blew up to allocate ~20 GB
svn log --stop-on-copy --xml --revision 10574:74748
(Don't ask why someone would do that over and over again :)
- we're asking for a lot of revisions (~65 k)
When I tried this request with an otherwise idle Apache I obeserved the
290m idle worker process after start of Apache
We're using "SVNPathAuthz short_circuit". If I change that to
290m idle worker process after start of Apache
So short_circuit path authorization is to blame.
If we don't do short_circuit, then (cf. mod_dav_svn/authz.c)
ap_sub_req_method_uri("GET", ...)
is called foreach changed path. This runs with a freshly created
But for short_circuit authz, svn_repos_authz_check_access is called from
To fix, use a sub-pool in subreq_bypass when calling
290m idle worker process after start of Apache
Cheers, Roderich
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.