Stop the Machine Agent

Non-JRE Bundled Zip Archive

If the Machine Agent process is running in the background, you can stop it by entering the kill command with the process ID as the argument. If it is running in the foreground in a console, press Ctrl+C to shut down the agent.

RPM-based Linux Systems

SysV: Use the service launcher:

% service /etc/init.d/appdynamics-machine-agent stop

systemd: Use the systemd unit file:

% systemctl stop appdynamics-machine-agent

Linux and Solaris Systems

Running in the Foreground: Press Ctrl+C to stop the agent process.

Running in the Background: Identify the process ID (PID) and use the kill

  1. Identify the agent process: ps -ef | grep machineagent.The output provides the process ID (PID) of the Machine Agent process.

  2. Stop the agent process: kill <machine_agent_PID>.

Windows

In the foreground in a console window: Use Ctrl+C to shut down the agent.

As a Windows Service: Stop the service using either of these methods:

  • In the Windows Services application, select Machine Agent and click Stop.
  • Use the MachineAgentService

    C:\> <machine_agent_home>\bin\MachineAgentService.exe /stop

Mac OS X

As a background process: Enter the kill command with the process ID as the argument.

As a service: From the bash command line:

> sudo launchctl unload -w <machine_agent_home>/com.appdynamics.machineagent.plist