Application Performance Monitoring Tools
  • 14 Sep 2023
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Application Performance Monitoring Tools

  • Dark
    Light
  • PDF

Article summary

About this Article
This article provides step by step procedure to configure AppDynamics and New Relic tools on .NET and .NET Core applications.


The supported APM Tools are:

  1. AppDynamics (Version 21.11.0)
  2. New Relic (Agent version 9.7.1)


AppDynamics

AppDynamics is an application performance monitoring tool that captures the performance metrics of applications. AppDynamics .Net Agent is the component that is used to instrument .NET process and capture the metrics from .NET based applications. 

By default, both VSP and AppDynamics use the same environment variables listed in table below. Follow the steps mentioned in the following sections to overcome this.

VSPAPPDynamics
COR_ENABLE_PROFILING=1
COR_PROFILER={8E2B38F2-7355-4C61-A54F-434B7AC266C0}
COR_PROFILER_PATH_64=
C:\Program Files (x86)\Virsec\iae-dnet\bin\dotnetprofiler.dll
COR_ENABLE_PROFILING=1
COR_PROFILER=AppDynamics.AgentProfiler
COR_PROFILER_PATH_64=C:\Program Files\AppDynamics\AppDynamics.NET\AppDynamics.Profiler_x64.dll


Configuration on .NET Application

  1. Install VSP Probe
  2. Install App Dynamic Agent by following the below article:  https://docs.appdynamics.com/21.4/en/application-monitoring/install-app-server-agents/net-agent/install-the-net-agent-for-windows 
  3. After installation, remove the below system-level environmental variables. These environmental variables are configured by AppDynamics Installer
    NOTE
    Make a note of the deleted system-level environmental variables and their values. If VSP is un-installed, these variables need to be added again for AppDynamics to function as expected



  4. Add the below values as System variables
    1. .NET 64-bit Application
      Text
      VSP_AdditionalProfiler_x64_Path=C:\Program Files\AppDynamics\AppDynamics .NET Agent\AppDynamics.Profiler_x64.dll
      VSP_AdditionalProfiler_CLSID=AppDynamics.AgentProfiler
      
    2. .NET 32-bit Application
      Text
      VSP_AdditionalProfiler_x86_Path=C:\Program Files\AppDynamics\AppDynamics .NET Agent\AppDynamics.Profiler_x86.dll
      VSP_AdditionalProfiler_CLSID=AppDynamics.AgentProfiler
      
  5. Restart IIS server


Configuration on .NET Core Application

  1. Download the NuGet package from the link: https://www.nuget.org/packages/AppDynamics.Agent.Distrib.Micro.Windows/ and extract the downloaded file
  2. Navigate to the tools directory and  copy the files in that directory  to the target system. Place them in any directory. Example: C:\<foldername>
  3. Install VSP Probe
  4. Install App Dynamic Agent using the article:  https://docs.appdynamics.com/21.4/en/application-monitoring/install-app-server-agents/net-agent/install-the-net-agent-for-windows
  5. After installation, remove the below system-level environmental variables. These environmental variables are configured by AppDynamics Installer
    NOTE
    Make a note of the deleted system-level environmental variables and their values. If VSP is un-installed, these variables need to be added again for AppDynamics to function as expected


    AppDynamics System Variables


  6. Add the below values as System variables
    1. .NET Core 64-bit Application
      VSP_AdditionalProfilerCore_x64_Path=C:\<foldername>\AppDynamics.Profiler_x64.dll
      VSP_AdditionalProfilerCore_CLSID={39AEABC1-56A5-405F-B8E7-C3668490DB4A}
      1. Restart IIS server
      2. The file AppDyanmicsConfig.json can be used to update the AppDynamics Controller information. It is retrieved from the AppDynamics account
    2. .NET Core 32-bit Application
      VSP_AdditionalProfilerCore_x86_Path=C:\<foldername>\AppDynamics.Profiler_x86.dll
      VSP_AdditionalProfilerCore_CLSID={39AEABC1-56A5-405F-B8E7-C3668490DB4A}
      1. Restart IIS server


New Relic

NOTE
Make a note of the system-level environmental variable and its value that needs to be deleted during configuration . If VSP is un-installed, this variable needs to be added again for New Relic to function as expected


Configuration on .NET/.NET Core Application

  1. Install VSP Probe
  2. Install New Relic Agent using the article:  https://docs.newrelic.com/docs/agents/net-agent/configuration/net-agent-configuration/
  3. After installation, remove the below system-level environmental variable CORECLR_PROFILER. This environmental variable is configured by New Relic Installer
  4. Remove the below system-level environmental variables using the Registry Editor. Navigate to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > WAS > Environment. These environmental variables are configured by New Relic Installer
    Text
    COR_ENABLE_PROFILING=1
    COR_PROFILER={71DA0A04-7777-4EC6-9643-7D28B46A8A41}
    CORECLR_ENABLE_PROFILING=1
    CORECLR_PROFILER={36032161-FFC0-4B61-B559-F6C5D41BAE5A}
    CORECLR_NEWRELIC_HOME=C:\ProgramData\New Relic\.NET Agent\
    NEWRELIC_INSTALL_PATH=C:\Program Files\New Relic\.NET Agent\

  5. Add the below values as System Environment variables in the Registry Editor. Navigate to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > WAS > Environment
    VSP_AdditionalProfiler_CLSID={71DA0A04-7777-4EC6-9643-7D28B46A8A41}
    VSP_AdditionalProfilerCore_CLSID={36032161-FFC0-4B61-B559-F6C5D41BAE5A}
    CORECLR_NEWRELIC_HOME=C:\ProgramData\New Relic\.NET Agent\
    NEWRELIC_INSTALL_PATH=C:\Program Files\New Relic\.NET Agent\
    VSP_AdditionalProfilerCore_x64_Path=C:\Program Files\New Relic\.NET Agent\netframework\NewRelic.Profiler.dll
    VSP_AdditionalProfilerCore_x86_Path=C:\Program Files\New Relic\.NET Agent\netframework\NewRelic.Profiler.dll
    VSP_AdditionalProfiler_Path=C:\Program Files\New Relic\.NET Agent\netframework\NewRelic.Profiler.dll
  6. Restart IIS server



Was this article helpful?