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

Re: Memory leak in mod_sav_svn?

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Tue, 06 Mar 2012 13:03:23 +0100

Am 05.03.2012 09:30, schrieb Fridtjof Busse:
> we're running a SVN repo (~6GB) on 1.7.3. Checking out the entire
> repo in one "svn co" (both 1.6 and 1.7) session is almost
> impossible. The httpd process starts consuming up to 4GB and then
> dies...

Note: The repository size and the size of a checkout are mostly
independent of each other. If you "svn remove" everything, your repo
will grow by a few bytes for the new revision. If you "svn copy" a file
to different locations inside the repository, it will only grow by a few
bytes for the new revision, but a checkout will contain multiple
independent copies of the files.

Anyhow, the question is what size the checkout really requires. The data
for this checkout is accumulated in memory and then sent to the client.
If this is more than the amount of memory you have, that's bad luck and
a natural limit, not a memory leak.

Another question is why you think you need the whole repository.
Depending on that, there might be different workarounds. What you can do
for sure is to check out with reduced depth and then update step by step
the missing child elements until you have a full repository. Other than
that, assuming a "normal" layout, you don't need the whole tags folder
for your work. In most cases you don't even need the branches folder,
only a few of them.

BTW: In order to pull the whole repository content including history,
svnsync is the tool of choice. However, that doesn't give you a working
copy but a mirror repository.

Good luck with whatever you are trying to achieve!

Uli

**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
Received on 2012-03-06 13:04:00 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.