This page applies to an earlier version of the AppDynamics App IQ Platform.
See the latest version of the documentation.

Skip to end of metadata
Go to start of metadata

On this page:


The AppDynamics Agent SDK for C/C++ lets you monitor the performance of C and C++ applications with AppDynamics.

The SDK provides transaction reporting, tier mapping, automatic dynamic baselining, data collectors, and health rules for C/C++ applications. It gives you visibility on application load and response times, any custom metrics you define, as well as system resource utilization, including CPU, memory, and disk I/O resources. 

You monitor C and C++ applications by adding a few API calls to the source code.

Once running, the agent registers business transactions with the AppDynamics Controller. You can then see your application flow map and monitor performance in the Controller

C/C++ Agent Supported Platforms

Operating Systems

Install the SDK on Linux

  1. Download the C/C++ SDK from https://appdynamics.com/download/
  2. Extract the SDK to the desired SDK home directory location, such as in /opt:

    sudo tar xvzf appdynamics-sdk-native-64bit-linux-VERSION.tar.gz -C /opt

    Replace VERSION in the filename with the version of the downloaded agent SDK.

  3. Update your build scripts to be able to access the AppDynamics SDK  library files:
    1. Add /opt/appdynamics-sdk-native/sdk_lib/lib to your library path:
      (e.g., -L/opt/appdynamics-sdk-native/sdk_lib/lib)

    2. Add -lappdynamics_native_sdk to your link options.
  4. Modify your program to use the AppDynamics SDK. See C/C++ Agent SDK Reference and Using the C/C++ Agent SDK.
  5. Ensure that the ulimit setting for open file descriptors on the operating system is set to a sufficient number. At a minimum you'll need two file descriptors for each active thread that calls the C++ SDK appd_sdk_init() function. 

Install the SDK on Windows

  1. Download C/C++ SDK from https://appdynamics.com/download/. Be sure to use the SDK that corresponds to the bit number for your operating system, whether 32 bit or 64 bit. Using the SDK version that doesn't match the bitness of the OS causes a linker error about missing symbols.
  2. Extract the downloaded SDK zip file to the directory where you want to place the SDK, such as C:\AppDynamics.
  3. Add the SDK lib directory to the system PATH, for example, add C:\AppDynamics\sdk_lib\lib to %PATH%.
  4. Configure your Visual Studio project to have the include path and link the AppDynamics library. Open Project > Properties.
    1. From the sidebar, unfold "C/C++" then choose "General". In the new pane, change "Additional Include Directories" to add: C:\AppDynamics\sdk_lib\
    2. From the sidebar, unfold "Linker" then choose " Input". In the new pane, change "Additional Dependencies" to add: C:\AppDynamics\sdk_lib\lib\appdynamics_native_sdk.lib
  5. Modify your program to use the AppDynamics SDK. See C/C++ Agent SDK Reference and Using the C/C++ Agent SDK.
  • No labels