Using Performance Monitor to Monitor the IIS Object Cache

Performance Monitor includes a set of extensible counters you can use to monitor the IIS services. These counters are installed in Performance Monitor when you run Internet Information Server Setup.

For descriptions of the Internet Information Server counters, in the Performance Monitor Add to Chart dialog box, select the counter name, then click the Explain button. You can also use Counters.hlp, a help file for the Performance Monitor counters. The most recent version of Counters.hlp is included on the Supplement 1 CD. Previous versions of Counters.hlp did not include descriptions of the Internet Information Server counters.

Many of the Internet Information Server counters display the last observed value or a cumulative count, not an average value or rate. To determine what a Performance Monitor counter displays, view its counter type in Counters.hlp. The counter type determines how the data Performance Monitor collects from internal counters is calculated and averaged. Counters.hlp lists the counter type of each counter and a description of the Performance Monitor counter types.

Performance Monitor includes four performance objects for measuring Internet Information Server performance:

HTTP Service

FTP Server

Gopher Service

Internet Information Services Global

The Internet Information Services Global performance object contains counters used by all three services. The counters that monitor the IIS Object Cache, which is shared by the services, are part of this performance object.

The following table lists the counters recommended for monitoring the IIS Object Cache. You should log the counters over time to record trends in the size, content, and effectiveness of the IIS Object Cache.

Table 5.2 Performance Monitor Counters for the IIS Object Cache

Counter

Indicates

Internet Information Services Global:
Cache Size

Maximum amount of space allocated for the IIS Object Cache, in bytes. This counter does not indicate how much of the space is occupied.

The default is 10% of physical memory.

(To change the size of the cache, edit the HKEY_LOCAL_MACHINE\System\
CurrentControlSet
\Services
\Inetinfo
\Parameters
\MemoryCacheSize

value entry in the Registry).

Internet Information Services Global:
Cache Used

Space in the IIS Object Cache that is currently being used to store objects, in bytes.

Compare Internet Information Services Global: Cache Used to Internet Information Server: Cache Size.

Internet Information Services Global:
Cache Hits

Internet Information Services Global:
Cache Misses

Internet Information Services Global:
Cache Hits %

A measure of the efficiency of the IIS Object Cache. Internet Information Services Global: Cache Hits and Internet Information Services Global: Cache Hits % (Internet Information Services Global: Cache Hits/
(Internet Information Services Global: Cache Hits + Internet Information Services Global: Cache Misses)) demonstrate how often data sought in the IIS Object Cache is found. Internet Information Services Global: Cache Misses indicates how often the system must search elsewhere in memory or on disk to satisfy a request.

Internet Information Services Global: Cache Hits and Internet Information Services Global: Cache Misses display the total number of hits and misses since the service started. These values always remain the same or increase over time.

Internet Information Services Global: Cache Hits % displays an instantaneous value, not an average over time.


Table 5.2 Performance Monitor Counters for the IIS Object Cache (Continued)

Counter

Indicates

Internet Information Services Global:
Cache Flushes

How many times an object was deleted from the IIS Object Cache, either because it timed out, or because the object changed.

Internet Information Services Global:
Objects

Internet Information Services Global:
Cached File Handles

Internet Information Services Global:
Directory Listings

The number of objects currently stored in the IIS Object Cache.

Internet Information Services Global: Objects = Internet Information Services Global: Cached File Handles + Internet Information Services Global: Directory Listings + other objects, such as IDC queries and responses.


These counters are included in IISCache.pmw, a Performance Monitor workspace settings file on the Supplement 1 CD. The workspace sets up a chart and a report of the counters.