How to identify Sitecore process in Performance Monitor


Description

Sometimes during the troubleshooting process of web applications such as Sitecore, it is necessary to use the Performance Monitor application to collect values of some of the Windows and .NET performance counters.

This article describes how to determine which performance counters correspond to a specific Sitecore instance.

Identify Instance By Application Domain Name

For some of the performance counters, Windows uses values that originate from the .NET Application Domain name to differentiate performance counter instances.

Consider the following example:

Such counters require knowledge of .NET Application Domain name that corresponds to the specific Sitecore instance. You can use the following approach to handle such a situation:

  1. Identify the Process ID, as described in the KB0467088 article.
  2. Download and run the Process Explorer (http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx).
  3. Open process details for w3wp.exe with Process ID from point 1 and check what application domains it contains.

    For example, this is how Process Explorer output might look:

  4. As in the previous examples, match the AppDomain name of the process ID 7176 to the _LM_W3SVC_10_ROOT instance of the performance counter to identify the correct performance counter instance.