How do I find the Cache Hit Ratio on my TFS AT server?

Grant Holliday’s blog

Senior Service Engineer, Microsoft Visual Studio Team Foundation Service

How do I find the Cache Hit Ratio on my TFS AT server?

  • Comments 3

Both a TFS Proxy server and a TFS Application Tier include a Version Control cache on disk. This allows each of the servers to service simple Download() requests without having to go to the Data Tier.

A “Cache Hit Rate” is represents as a percentage how many requests were able to be served from the cache, instead of going to the Data Tier (or in the case of the Proxy – to the Application Tier). A higher percentage is better.

If you have a TFS Proxy server, you can use TfsServerManager from the Team Foundation Power Tools to find out the Cache Hit Rate.

What I didn’t know is that you can also call a web service on the Application Tier server to get the same numbers. This is the same web service and instructions detailed on this MSDN page How to: Examine Cache Performance for Team Foundation Server Proxy – but use it on the AT.

You should get a response with the following attributes:

CurrentCacheSize

NoOfRequests

OverallCacheHits

NoOfFilesInCache

OverallCacheMisses

CacheHitsPercentage="96.6"

CacheMissPercentage="3.4"

ServerId=

ServerUrl=http://tfsserver:8080/

You could also write a utility that calls this webservice for you instead of logging on to the server directly.

Page 1 of 1 (3 items)