スタンドアロンアプリケーションのDefaultDomainのインストルメンテーション

デフォルトでは、.NET エージェントは .NET DefaultDomain、AppDomain をインストルメント化しません。DefaultDomain のインストルメンテーションをする前に次のことを行います。

この手順を完了してもコントローラにビジネストランザクションが表示されない場合、管理対象コードがDefaultDomain で実行されているかどうかを確認してください。実行されている場合、DefaultDomain をインストルメント化するには、エージェントを構成する必要があります。

DefaultDomainでアプリケーションが実行されているかを確認

アプリケーションの管理コードに詳しくない場合は、エージェントログを使用してAppDomainを特定することができます。

  1. エージェントログを開きます:Windows Server 2008 以降:%ProgramData%\AppDynamics\DotNetAgent\Logs\AgentLog.txt
  2. エージェントログで AppDomain を検索します。エージェントが起動すると、AppDomain を含むログエントリは僅かです。次の例に類似したエントリを dllhost またはインストゥルメント化されたアプリケーションで探します。
    2013-12-16 08:23:02.3120 3068 MYPROGRAM 1 1 Info Configuration appDomainName=DefaultDomain appDomainId=1 iis-app=null site=null port=null appPoolId=
    2013-12-16 08:23:02.6240 3192 dllhost 1 17 Info ConfigurationManager Not instrumenting DefaultDomain for pid 3068
    この例では、MYPROGRAM がインストルメント化されたスタンドアロン アプリケーション名です。ログエントリ appDomainName=DefaultDomain で、AppDomain の名前がわかります。

Instrument the DefaultDomain

  1. Open the config.xml Administer the .NET Agent
  2. Copy the code block below to a child element of the standalone-applicationFor example: .NET Agent Configuration Properties
    <profiler>
    <instrument-defaultdomain enabled="true"/>
    </profiler>
    (warning) The Profiler element must follow the Standalone Application Tier element.

    For Example:

    <?xml version="1.0" encoding="utf-8"?>
    <appdynamics-agent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <controller host="mycontroller.mycompany.com" port="8090" ssl="false">
    <application name="My Business Application" />
    <account name="customer1" password="changeme" />
    </controller>
    <machine-agent />
    <app-agents>
    <IIS>
    <applications />
    </IIS>
    <standalone-applications>
    <standalone-application executable="MyStandaloneApp.exe">
    <tier name="Standalone Tier" />
    <profiler>
    <instrument-defaultdomain enabled="true"/>
    </profiler>
    </standalone-application>
    </standalone-applications>
    </app-agents>
    </appdynamics-agent>
  3. Save the config.xml file.
  4. Restart the AppDynamics.Agent.Coordinator service.
  5. Restart the standalone application for your changes to take effect.