How to: Examine Cache Performance for Team Foundation Server Proxy
As a Team Foundation Server administrator, you might want to examine the performance of the source control cache on the Team Foundation Server Proxy computer. By default, performance counters are installed, and you can view statistics for these counters in the Performance monitor or by using the ProxyStatistics Web service. 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 regularly saved to an XML file named ProxyStatistics.xml. You can also change the period of time for these intervals. For more information, see How to: Change Cache Settings for Team Foundation Server Proxy.
To perform this procedure using Perfmon, you must be at least a member of the Performance Monitor Users security group on the Team Foundation Server Proxy computer. To perform this procedure using the ProxyStatistics Web service, you must be a member of the local Administrators security group on the Team Foundation Server Proxy computer.
To view cache performance for Team Foundation Server Proxy by using Perfmon
Click Start, point to Administrative Tools, and then click Performance.
- or -
Open a Command Prompt window, and at the command prompt, type perfmon.
The Performance monitor appears.
In the left pane, expand Console Root, and then click System Monitor.
The system monitor appears in the right pane.
Right-click the system monitor pane, and then click Add Counters.
The Add Counters dialog box appears.
In the Add Counters dialog box, click Select counters from computer.
In the Select counters from computer box, make sure that the name of the computer that has Team Foundation Server Proxy installed is displayed. Otherwise, type or select the name of that computer.
In the Performance object box, select TFS Proxy Server.
In the Select counters from list, the performance counters for this performance object are displayed.
Select one of the following:
To select all counters, click All counters, click Add, and then click Close.
To select individual counters, click Select counters from list, select the counters you want to add, click Add, and then click Close.
To select a continuous range of counters, press and hold the SHIFT key when you select the first and last counter in the range. To select a discontinuous range, press and hold the CTRL key when you select each counter.
In the system monitor pane, the performance counters for the cache are added to the System Monitor window.
To view cache performance for Team Foundation Server Proxy by using the ProxyStatistics Web service
If you are not using the computer that has Team Foundation Server Proxy installed, open a remote desktop connection to that computer.
You can call the QueryProxyStatistics operation only from the local computer that has Team Foundation Server Proxy installed.
On the Team Foundation Server Proxy computer, open Internet Explorer and locate the following URL:
The Web page for the ProxyStatistics Web service and its operations is displayed.
Click QueryProxyStatistics to view information about the operation.
Click Invoke to display an XML file that contains the performance counter statistics.
<ProxyStatisticsInfo>element that contains these statistics.
For example, some sample output might look like the following:
<ProxyStatisticsInfo CurrentCacheSize="356352" NoOfRequests="82" OverallCacheHits="41" NoOfFilesInCache="41" OverallCacheMisses="41" CacheHitsPercentage="50" CacheMissPercentage="50" ServerId="643c23c1-3f47-43d2-b638-3bd0e7ea8bff" ServerUrl="http://TeamFoundationServerName:8080/VersionControl" />
The following statistics are calculated at run time: OverallCacheMisses, CacheHitsPercentage, and CacheMissPercentage.