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

TSVNCache Possible Memory Leak when delete and checkout

From: Andre Schlegel <andre.schlegel_at_emsys.de>
Date: Thu, 27 Nov 2008 14:39:50 +0100

I have noticed the discussion about the high memory usage of
TSVNCache.exe and i have investigated a litte bit more time into this
because i also use the feature of the recursive icon overlay.
At first i use TortoiseSVN 1.5.5, Build 14361 and Windows XP Pro SP3
32Bit version without any explorer extension.
My local SVN repository contains about 420000 files/directories. the
total size is about 4 GB on the disk. Normally i have a memory amount of
~200MByte, 10 threads and ~190 handles of the process TSVNCache.exe in
the windows task manager. One of my modules contains about 40000
files/directories.
I did the following test: i delete this module on the local disk (with
the windows explorer) and then i start a new SVN checkout to the same
position on the local tree. Then i was browsing across the local SVN
files. After some time i have a memory usage of about 1.5GByte, 10
threads and up to 1000 handles (1400 in the peak). I can reproduce this
behaviour also with TortoiseSVN 1.4.8, Build 12137, but there the memory
usage rises in the range of the normal memory consumption of this module
(40000 files/directories). On TortoiseSVN 1.4.8 the 40000 files normally
uses about ~24MByte and after the delete and checkout about ~50MByte.
The i have retryed to repoduce the behaviour with TortoiseSVN 1.5.5 but
now the TSVNCache.exe crashed. I have mailed the report with the dump to
 crashreports_at_tortoisesvn.tigris.org. After this, a second retry with
the same procedure. The effect was that the memory usage rises in the
range of the normal memory consumption of this module (40000
files/directories). On TortoiseSVN 1.5.5 the 40000 files normally uses
about ~50MByte and after the delete and checkout about 255MByte.

There are two results after this tests:

1) TSVNCache.exe under TortoiseSVN 1.5.5 uses approx. twice the memory
as under TortoiseSVN 1.4.8, that's no problem for me, i can live with
this thing.
2) There is a problem when local SNV files are deleted with the windows
explorer, the memory of TSVNCache.exe is incremented with every new
delete and SVN checkout cycle.

Please can you reproduce this behaviour, for me this looks like a memory
leak ?

Best regards,

André

-- 
Dipl.-Ing. André Schlegel
Hardware Design and Verification
emsys Embedded Systems GmbH
Ehrenbergstraße 11
98693 Ilmenau
Germany
Tel.:+49(3677)66 82 56   Fax: +49(3677)66 82 59
E-Mail: andre.schlegel_at_emsys.de
Internet: www.emsys.de
CEO: Dr.-Ing. Karsten Pahnke
office: Ilmenau
Register of commerce in county court Jena: HRB 304988
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-11-27 14:42:27 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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