To install the C/C++ SDK on Linux:

  1. Download the C/C++ SDK from the Downloads Portal.
  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
    CODE

    Replace VERSION in the file name with the version of the downloaded SDK.

  3. Update your build scripts to be able to access the Splunk 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 Splunk AppDynamics C/C++ SDK. See C/C++ SDK Reference and Use the C/C++ 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.