On this page:
If you are using an on-premises version of Database Visibility, you must start the Events Service before you start the Database Agent. Before starting the agent, you must configure the properties in this file. You must specify these properties: Controller Host Property, Controller Port Property, and Account Access Key Property.
The following assumes that all the necessary parameters have been specified in the controller-info.xml. The controller-info.xml file describes the properties of agent to Controller communications. Note that <db_agent_home> is the absolute path to the location where the Database Agent is installed. Setting the heap size is recommended as shown below. See Agent Hardware Requirements for more information.
start-dbagent.bat -Xms<min_heap_size> -Xmx<max_heap_size>
./start-dbagent -Xms<min_heap_size> -Xmx<max_heap_size> &
See Install the Database Agent as a Windows Service, Start the Database Agent Automatically on Windows, and Start the Database Agent Automatically on Linux.
If the Database Agent process is running in the background, you can stop it by simply entering the kill command with the process ID as the argument. If it is running in the foreground in a console, you can press Ctrl+C to shut down the agent.
In the Windows Services application, select AppDynamics Database Agent and click Stop.