High CPU caused by TortoiseSVN process TSVNCache.exe

Problem:

The TortoiseSVN process "TSVNCache.exe" constantly occupies the CPU.

TSVNCache.exe is one of TortoiseSVN processes running in background and searching for directories on hard drive that are under version control. It often consumes lot of CPU resources and gives machines a hiccup, and it seems like  the only way to stop it is to kill it.

Fortunately we can configure TSVNCache to scan places that we know are under version control. Here’s step by step instruction on how to do it:

  • Right-click on your desktop, from TortoiseSVN menu choose Settings
  • In tree-view on the left choose Icons Overlays 
  • In Exclude Paths text box type paths on your system that are not under version control ( use wild cards to exclude whole directory trees )
  • In Include paths enter paths that you know are under version control
  • Click OK
  • Open Task manager ( right-click on your taskbar and choose Task Manager ) and kill TSVNCache.exe
Solution:

This is because TortoiseSVN is scanning your entire file system to update its internal cache.

This can be simply fixed by doing the following:

1. Right-click on any folder, and navigate to  TortoiseSVN  -->  Settings  -->  Icon Overlays

2. Under "Exclude paths", set it to c:\*


3. Under "Include paths", include all folders in which your SVN code exists

An example will help here:

Exclude:
       C:
       C:\develop\?
       C:\develop\tsvn\obj
       C:\develop\tsvn\bin

Include:
       C:\develop



参考:

1.http://blog.ipnweb.com/2011/02/high-cpu-caused-by-tortoisesvn-process.html

2.http://binary.freeperspective.net/countzero/2009/02/12/tsvncacheexe-high-memory-usage/

3.http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-settings.html





你可能感兴趣的:(High CPU caused by TortoiseSVN process TSVNCache.exe)