High CPU caused by TortoiseSVN process TSVNCache.exe

本文介绍如何通过配置TortoiseSVN的TSVNCache.exe来避免其占用过多CPU资源。通过设置排除和包含路径,可以指定扫描范围,减少不必要的系统扫描,从而降低CPU使用率。
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

TortoiseSVN settings dialog


参考:

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





评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值