To upgrade the agent:

  1. Kill the proxy process.
    If you do not know the PID of the proxy process you can get it by running this command:

    ps -aux | grep "proxy"
    CODE

    Then kill the process as follows:

    kill <PID>
    CODE
  2. Shut down the web server.
  3. Move/rename the agent install directory, /opt/appdynamics-sdk-native to make a backup.
  4. Download the new version of the agent and extract it into /opt/appdynamics-sdk-native.
  5. Change directory to the agent install directory:

    cd <agent_install_directory>
    CODE
  6. Run the installer:

    ./install.sh
    CODE

    It is not necessary to change the configuration when you use the same directory location as the old agent installation.

  7. Launch the proxy process:

    To launch the proxy manually, run runSDKProxy.sh using the user ID of the Apache worker threads.

    nohup <agent_install_directory>/runSDKProxy.sh >>/dev/null 2><agent_install_dir>/logs/proxy.out &

    It is recommended that you create a Unix System Service that automatically starts the proxy at system startup.

    The Proxy expects the appropriate (64- vs. 32-bit) libstdc+6 library location. If you are installing the Apache Agent on a 64-bit OS that supports running a 32-bit Apache HTTP Server, make sure that the downloaded Apache Agent matches (i.e., is 32-bit), and that the libstdc+6 library is 32-bit as well. If you have both 64-bit and 32-bit versions of that library, make sure you are pointing to the correct version using the command export LD_PRELOAD=<path to 32bit library> before starting runSDKProxy.

  8. Restart the web server.