On this page:

Search C/C++ Agent topics:


Your Rating:
18 rates
The AppDynamics Agent SDK for C/C++ lets you monitor the performance of C and C++ applications with AppDynamics.

The SDK provides transaction and backend reporting, automatic tier mapping, automatic dynamic baselining, health rules, data collectors, and transaction snapshots. Together, these tools give you visibility on application load and response times, and any custom metrics you define.

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 monitor performance in the Controller

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'STAGE:C/C++ Agent Supported Environments'.

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 file name 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-cpp-sdk/lib to your library path. For example, -L/opt/appdynamics-cpp-sdk/lib.

    2. Add -lappdynamics 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 will 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\appdynamics-cpp-sdk\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\appdynamics-cpp-sdk\include
    2. From the sidebar, unfold Linker then choose Input. In the new pane, change Additional Dependencies to add: C:\AppDynamics\appdynamics-cpp-sdk\lib\appdynamics.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