Apache mod_dav_svn leaking memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subversion |
Confirmed
|
Low
|
|||
subversion (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libapache2-svn
I have a large Subversion repository hosted with read access over plain HTTP. When checking out from the repository, the Apache process that is serving the WebDAV REPORT request starts consuming more and more memory until all memory and swap space is consumed and the machine becomes inaccessible. The only work-around I have found is to set "ulimit -v 3000000" before launching Apache, which effectively kills the process when virtual memory usage hits 3Gb. The client can then restart the checkout and eventually it will be completed.
I have only noticed the leak when using Subversion clients, and tests with Apache Bench don't seem to cause it, so it would appear to be a problem with the Subversion module. I can't be absolutely certain at this stage though.
lsb_release -rd: Description: Ubuntu 8.04.1 Release: 8.04
uname -a: Linux x.y.com 2.6.24-19-server #1 SMP Wed Aug 20 18:43:06 UTC 2008 x86_64 GNU/Linux
libapache2-svn: 1.4.6dfsg1-2ubuntu1
apache2: 2.2.8-1ubuntu0.3
The machine has 4 CPUs and 4Gb of RAM. Running x86_64 Ubuntu.
Changed in subversion: | |
importance: | Unknown → Low |
status: | Unknown → Confirmed |
I have encountered the same problem on test machine I have setup under Intrepid Ibex 32-bit BETA. My machine is smaller with 1gb RAM & Pentium D @ 2.45GHz.
Using TortoiseSVN, I get about 1300mb of data before Apache restarts, thus killing the checkout/update... This is especially bad for me since my repository is ~75gb.