Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Instrumentation.xml file is located in the <i3_root>\products\dotnet\config directory. It contains the following major section: Instance-specific section.

Following is an example of the file structure:

...

The file consists of the following subsections:

  • DLL list: . A list of DLLs to be instrumented and specific configuration rules for each DLL. If the underlying process of the instance should be instrumented, it must be mentioned explicitly.
  • Common instrumentation rules (“instrument”) for the whole DLL list.
  • Common exclude rules (“ignore”). Following is an example of the file structure:

...

The ASP.NET DLLs are typically loaded from a special temporary directory, such as:

C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\mspetshop\c73f3fa0\1ae4c2f3\assembly\dl2\bee75c45\aa2e9da0_9807c501)

As in the case of the GAC, to instrument such DLLS, do not specify the ASP.NET DLL path and only use the DLL name.

...

The Microsoft .NET AppTier Collector agent is designed to report only when a complete sequence of method invocations has finished. To deal with this kind of scenario, the ignore tag is used in the default instrumentation file to exclude the instrumentation and the tracking of the main method.

...

  • The COM+ library components are executed and used as a library (DLL) in the context of an executable. The calls to the COM+ component methods look like other intra-process method calls.
  • The COM+ server components are hosted in an external COM+ container. A call from the COM+ component client (process) to the hosted COM+ component (external server process) is an inter-process call. In other words, activity exists in two different processes: the client-side process (caller-side) and the server-side process (callee-side).

To have the Microsoft .NET infrastructure reuse COM+ technology, perform the following tasks:

...

  1. Verify that your Microsoft .NET application is running.
  2. Open the command prompt window.
  3. Change directory to the <i3_root> directory.
  4. Run the following command:
    • Microsoft .NET Framework version 1.1.
      products\dotnet\install\psdn_detect_dlls.exe /im image name /f filter file name
    • Microsoft .NET Framework version 2.0 and 3.0.
      products\dotnet\install\FW2.0\psdn_detect_dlls.exe /im image name /f filter file name

    where the parameter values should be set as follows:

    • image name

    If this is an ASP.NET instance, the name of this executable depends on the Internet Information Server (IIS) type.

        • IIS 6: w3wp.exe

        • IIS 7: 

    If this is a regular .NET instance, the image name is the name of the .NET executable (without the path).

    • filter file name

    The path and name of the file that lists the modules to be filtered out, as follows:
    products\dotnet\install\dlls_filter.xml

    As alternative to this step, you can also use the Process Explorer. See http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx.

  5. Save the XML output of the command to a temporary file.

...

  1. Open the following file in an editor:
    <i3<i3_root>root>\products\dotnet\config\instrumentation.xml
  2. Within the XML output that you saved in step 5 above, locate the <module name> tag for a DLL file you want to instrument and copy the file name.
    For example, if you want to instrument the file petshop.web.dll, copy its name from the line <module name="petshop.web.dll">.
  3. In the instrumentation file, paste the name of the DLL file into the entry for the instance that you want to monitor.
    For example:
    <instances>
         <instance name="AspNetIIS6" >
              <dlls>
              <dll name="petshop.web.dll"/>
              ...
              </dlls>
         </instance>
    </instances>
  4. Repeat step 2 and step 3 for each DLL file that you want to instrument.
  5. Restart your Microsoft .NET application for the changes to take effect.

...

  1. After the Microsoft .NET instance is installed, configure the DLLs, classes, and methods to be instrumented in the instrumentation.xml file.
  2. Open a command prompt window and run the following command:
         cd <i3_root>
         products\dotnet\bin\psdn_instr_validate.exe [-k instance-name]
         -f directory-name | -dll name [-gac]
    Wherewhere:
    instance-name is the Microsoft .NET instance name, such as AspNetIIS5. If this parameter is omitted, the Instrumentation Driver works for all the Microsoft .NET instances that are installed on the monitored server. 
    directory-name is the name of the DLL directory of the Microsoft .NET instance to be instrumented. This is the location where you deployed your Microsoft .NET code. For example, a DLL for an ASP.NET application may be stored in:
          C:\Inetpub\wwwroot\MyWebApp\bin
    name is the name of a single DLL (without the path). If this DLL is located in the GAC, add -gac when running the command.

...