We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

How to: Examine Cache Performance By Using Performance Monitor

As an administrator for Visual Studio Team Foundation Server, you might want to examine the performance of the version control cache on a computer that is running Team Foundation Server or Team Foundation Server Proxy. By default, performance counters are installed, and you can view their statistics by using Performance Monitor or the ProxyStatistics Web service. For more information about this Web service, see How to: Examine Cache Performance by Using the ProxyStatistics Web Service.

For example, you can view statistics for the following counters:

  • Current cache size

  • Total cache hits

  • Total download requests

  • Total files in cache

These statistics are saved at set intervals to the ProxyStatistics.xml file. For information about how to change the length of the intervals and other cache settings, see How to: Change Cache Settings for Team Foundation Server Proxy.

Required Permissions

To perform this procedure, you must be a member of the Performance Monitor Users security group on the computer whose performance you want to monitor.

To view cache performance on Windows Server 2008 R2

  1. Click Start, point to Administrative Tools, and then click Performance Monitor.

    The Performance Monitor window appears.

  2. In the tree pane, expand Monitoring Tools, click Performance Monitor, right-click the graph, and then click Add Counters.

    The Add Counters dialog box opens.

  3. In the Select counters from computer list, make sure that the name of the computer whose performance you want to monitor appears. Otherwise, type or click the name of that computer.

  4. In the Available counters list, double-click TFS Proxy Server.

    The performance counters for this object appear and are automatically selected.

  5. Perform one of the following steps:

    • To specify all counters, click Add, and then click OK.

    • To specify individual counters, click the counters that you want to add, click Add, and then click OK.


      To specify a continuous range of counters, press and hold the SHIFT key when you click the first and last counter in the range. To specify a discontinuous range, press and hold the CTRL key when you click each counter.

    The performance counters for the cache appear in the viewing pane.


How to: Examine Cache Performance by Using the ProxyStatistics Web Service


Managing Team Foundation Server Proxy