[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Fwd: Re: memory problems w/ mod_dav_svn?]

From: Vincent Rivellino <vince_at_cuz.cx>
Date: Tue, 12 Aug 2008 14:22:27 -0400 (EDT)

I recently posted this message (follow-ups included below it) to the
users_at_subversion.tigris.org email list. I haven't been able to find a
solution, and I'm hoping someone on the dev list can point me in the right
direction.

Any suggestions?

Thanks,
Vince

PS: Please reply-all, as I am not subscribed to the dev list.

---------------------------- Original Message ----------------------------
Subject: memory problems w/ mod_dav_svn?
From: "Vincent Rivellino" <vince_at_cuz.cx>
Date: Mon, August 4, 2008 12:16
To: users_at_subversion.tigris.org
--------------------------------------------------------------------------

Has anyone run into memory problems using mod_dav_svn w/ rather large
repositories?

I recently migrated our repositories to 1.5.1 and moved them from svn+ssh
to mod_dav_svn via https.

After one of my users checked out the largest project (about 800MB
checkout), our SVN server ran out of memory and the kernel had to kill
processes. I was able to recreate the problem by checking out the same
repo again and watching top on the server. This is a snippet of top
*after* the checkout completed:

   PID USER PR VIRT RES SHR %CPU %MEM TIME+ CODE DATA nFLT
nDRT COMMAND
 19167 apache 16 1655m 1.4g 2664 0 36.0 3:59.93 288 1.4g 0
0 httpd

In this case the system didn't run out of memory, but the httpd process
that served my checkout didn't seem to give back the memory it used during
the checkout process.

I really don't want to have to move back to svn+ssh as the transport,
because I like not having to give system accounts to the engineering
staff. We're also using mod_authz_svn because we need to restrict
repository access to outside consultants.

Can anyone offer any insight?

---------------------------- Original Message ----------------------------
Subject: Re: memory problems w/ mod_dav_svn?
From: "Vincent Rivellino" <vince_at_cuz.cx>
Date: Mon, August 4, 2008 13:00
To: users_at_subversion.tigris.org
--------------------------------------------------------------------------

For what's it worth, I just tested the monstrous checkout w/ mod_authz_svn
disabled, and I still get the apparent memory leak.

So the problem lies either in mod_dav_svn or possibly mod_dav.

Does anyone have any suggestions on how to figure out which module is
causing the high memory usage?

On Mon, August 4, 2008 12:42, Vincent Rivellino wrote:
> Just tried that fix, and I got the same result:
> PID USER PR VIRT RES SHR %CPU %MEM SWAP CODE DATA nFLT nDRT
> COMMAND
> 12443 apache 16 1655m 1.4g 2692 0 36.0 259m 288 1.4g 0 0 httpd
> On Mon, August 4, 2008 12:19, Mark Phippard wrote:
>> Can you try the fix that was made with this revision?
>> http://svn.collab.net/viewvc-experimental/svn?view=revision&revision=32360
The reporter was having the problem happen during merge, but the fix
was in a general area of code. It was related to authz handling. You'd
have to apply the fix to the 1.5.1 source and build yourself.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-08-13 01:48:11 CEST

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.