Upgrade the Apache Agent
To upgrade the agent:
- Kill the
proxyprocess.If you do not know the PID of the
proxyprocess you can get it by running this command:
Then kill the process as follows:ps -aux | grep "proxy"kill <PID> - Shut down the web server.
- Move/rename the agent install directory, /opt/appdynamics-sdk-native, to make a backup.
- Download the new version of the agent and extract it into /opt/appdynamics-sdk-native.
- Change directory to the agent install directory:
cd <agent_install_directory> - Run the installer:
./install.shIt is not necessary to change the configuration when you use the same directory location as the old agent installation. - Launch the proxy process:To launch the proxy manually, run r
unSDKProxy.shusing 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.Note: The Proxy expects the appropriate (64- vs. 32-bit)libstdc+6library 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 thelibstdc+6library 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 commandexport LD_PRELOAD=<path to 32bit library>before startingrunSDKProxy. - Restart the web server.