Using Performance Counters

By CJ Pattekar

November 6, 2009

This section of the document applies to Microsoft Application Request Routing Version 2 for IIS 7 and Above.

Goal

To successfully monitor Application Request Routing (ARR) runtime statistics using performance counters.

Prerequisites

This is an advanced feature in ARR. This article assumes that you are familiar with the overall functionality of ARR and know how to deploy and configure ARR with disk cache. If you have not done so already, it is strongly recommended that you review the following walkthroughs before proceeding:

If Application Request Routing Version 2 has not been installed, you can download it at:

  • Microsoft Application Request Routing Version 2 for IIS 7 (x86) here.
  • Microsoft Application Request Routing Version 2 for IIS 7 (x64) here.

Follow the steps outlined in this document to install ARR Version 2.

Step 1 - Overview of ARR runtime statistics.

Application Request Routing exposes runtime statistics on the Monitoring and Management page, as shown below:

As you refresh the view by pushing the F5 key, you can see the real-time statistics. While this works well for one instance of ARR, it is somewhat problematic when there are multiple instances of ARR and you want to aggregate the statistics into a consolidated view. To accommodate this scenario, ARR also exposes these statistics and more using performance counters.

Step 2 - ARR runtime statistics as performance counters.

There are two counters for ARR:

  • Application Request Routing Cache
  • Application Request Routing Server

Application Request Routing Cache

The following performance counter objects are available:

  • Hit Bytes
  • Hit Byte %
  • Hit Bytes / Sec
  • Hit Requests
  • Hit Requests %
  • Hit Requests / Sec
  • Miss Bytes
  • Miss Bytes / Sec
  • Miss Requests
  • Miss Requests / Sec

Since ARR also provides the above statistics per host name per server farm, the instances of the objects have the same granularity and they are shown as <server farm name>\<host name>, as shown below:

Application Request Routing Server

The following performance counter objects are available:

  • Average Response Time / Request
  • Bytes Received
  • Bytes Received / Sec
  • Bytes Sent
  • Bytes Sent / Sec
  • Current Requests
  • Failed Requests
  • Failed Requests / Sec
  • Health
  • Requests / Sec
  • State
  • Total Requests

Since ARR also provides the above statistics per server per server farm, the instances of the objects have the same granularity and they are shown as <server farm name>\<server name>, as shown below:

Summary

You have successfully located the Application Request Routing performance counters and objects, and they can now be used to aggregate and monitor statistics from one or more ARR servers.

For other ARR Version 2 walkthroughs, see the documents in this article.



Discuss in IIS Forums