How to: Examine Cache Performance by Using the ProxyStatistics Web Service
As an administrator for Team Foundation Server, you might want to examine the performance of the source control cache on the computer that is running Team Foundation Server or Team Foundation Server Proxy. By default, performance counters are installed, and you can view statistics for these counters by opening Performance Monitor or by using the ProxyStatistics Web service. For information about how to use Performance Monitor to view cache performance, see How to: Examine Cache Performance By Using Performance Monitor.
For example, you can view the following performance counters:
Current cache size
Total cache hits
Total download requests
Total files in cache
These statistics are saved at regular intervals to the ProxyStatistics.xml file. For information about how to change the intervals and other cache settings, see How to: Change Cache Settings for an Application-Tier Server or How to: Change Cache Settings for Team Foundation Server Proxy.
To perform this procedure, you must be a member of the local Administrators security group on the computer that is running Team Foundation Server or Team Foundation Server Proxy.
In addition to these permissions, you might need to address the following requirements on a computer that is running Windows Server 2008 or Windows Vista:
To follow a procedure that requires Internet Explorer, you might need to start it as an administrator by clicking Start, clicking All Programs, right-clicking Internet Explorer, and then clicking Run as administrator.
To access Web sites or Web services, you might need to add one or more sites to the list of trusted sites in Internet Explorer or start Internet Explorer as an administrator.
For more information, see the Microsoft Web site.
To view cache performance by using the ProxyStatistics Web service
Log on locally or open a Remote Desktop connection to the server whose performance you want to monitor.
You must be logged into the server that hosts the ProxyStatistics Web service to invoke the QueryProxyStatistics operation.
Open Internet Explorer, and type the following URL:
For an application-tier server: http://localhost:8080/VersionControl/v1.0/proxystatistics.asmx
For a computer that is running Team Foundation Server Proxy: http://localhost:8081/VersionControl/v1.0/proxystatistics.asmx
The Web page for the ProxyStatistics Web service appears.
Click QueryProxyStatistics, and then click Invoke.
An XML output file opens that contains statistics about the cache performance. For example, some sample output might resemble the following text:
<ProxyStatisticsInfo CurrentCacheSize="356352" NoOfRequests="82" OverallCacheHits="41" NoOfFilesInCache="41" OverallCacheMisses="41" CacheHitsPercentage="50" CacheMissPercentage="50" ..." />
The following statistics are calculated at run time: OverallCacheMisses, CacheHitsPercentage, and CacheMissPercentage.