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

Re: TSVNCache Memory usage

From: Stefan Kueng <tortoisesvn_at_gmail.com>
Date: Mon, 15 Dec 2008 18:37:21 +0100

Scott McCaskill wrote:
> On Fri, Dec 12, 2008 at 10:35 AM, Stefan Kueng <tortoisesvn_at_gmail.com
> <mailto:tortoisesvn_at_gmail.com>> wrote:
>
> Scott McCaskill wrote:
> > On Thu, Nov 20, 2008 at 9:27 AM, Stefan Küng
> <tortoisesvn_at_gmail.com <mailto:tortoisesvn_at_gmail.com>
> > <mailto:tortoisesvn_at_gmail.com <mailto:tortoisesvn_at_gmail.com>>> wrote:
> >
> > Scott McCaskill wrote:
> > > I have also noticed a significant increase in memory usage
> with the
> > > 1.5.x clients. Not 1.2 GB, but hundreds of MB is not uncommon.
> > It can
> > > vary quite a bit--sometimes it is < 100 MB, other times I'll
> look and
> > > it's taking 500-600 MB.
> >
> > Please use the process explorer (from sysinternals), find the
> > TSVNCache.exe process, then check how many active threads it has.
> > If the number of threads is more than 15-20, that means you
> have an
> > application using the shell extension but not releasing the
> COM objects
> > properly (i.e., a COM leak).
> >
> > Stefan
> >
> >
> > Ok, this happened again today. TSVNCache was using over 500 MB. Task
> > manager showed 13 threads. I also have the debug tray icon for
> > TSVNCache enabled. It said "Cached directories: 8552 Watched
> Paths: 214".
>
> I assume you restarted since then? What does it show when memory use is
> normal?
>
>
>
> Yes, I've restarted. Sometimes I restart the machine, other times I
> just restart TSVNCache by using the status cache setting in the settings
> dialog.
>
> I did an experiment today. When I came in this morning, TSVNCache was
> using around 200 MB. I restarted it via the settings dialog and it
> started at 55 MB. I then opened the topmost folder of each project,
> waiting for disk activity to subside before moving on to the next
> folder. After this, TSVNCache was at 108 MB.
>
> Then, I closed the explorer window, restarted TSVNCache again, and
> repeated the same test. This time, there was very little disk activity,
> and the memory use hardly increased at all (still at 55 MB)!

Sure, the cache writes its info to disk (if you don't kill the process
but use the menu to quit it). So the second time it already had the
status information and didn't need to fetch it again.

> One other thing--I have two projects that have no status icons for any
> directories immediately below the top level project directory. However
> the top level directory has an icon, and so do other directories further
> down.

How is your setup on those working copies? I can't see how that would be
possible?

> I have the "Launch folder windows in a separare process" setting enabled
> in windows--could this be causing problems?

Definitely not, I have the same setting (debugging a shell extension
without that would be more pain than it already is).

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=984581
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2008-12-15 18:39: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.