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

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.

Published 06 August 08 07:38 by grantholliday
Filed under: , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# a-foton » How do I find the Cache Hit Ratio on my TFS AT server? said on August 6, 2008 11:25 AM:

PingBack from http://blog.a-foton.ru/2008/08/how-do-i-find-the-cache-hit-ratio-on-my-tfs-at-server/

# Jim said on November 26, 2008 12:02 PM:

Hi Grant,

I am doing some investigating on our install that was completed by a former IT employee.  I noticied that when I look at Perfmon there are 2 server instances listed.  One as the server name, the other as the IP address of the box.  Any thoughts on why I would see both of these?  Is there another configuration option out there for the proxy setup?

# grantholliday said on November 26, 2008 8:17 PM:

@Jim

This would be because two people that have a proxy configured are connecting to the same TFS server using different addresses.

Leave a Comment

(required) 
(optional)
(required) 

Search

Go

This Blog

Syndication

Page view tracker