On this page:
Follow the procedure below to manually install the Database Agent. You can alternatively follow the steps in the Download & Install Wizard, which you can access from the home page in the Controller UI. The wizard simplifies the install process.
To avoid permission issues, you should install the Database Agent as the same user who will run the agent, or as an administrator on the host machine. To run the Database Agent, you must have write privileges to the logging output directory and to the conf directory, which are located in the agent installation directory.
Double-click the dbagent-x.x.x.zip file and extract the files to <db_agent_home>. If necessary, you can unblock the zip file before you extract it as follows: Right-click on the zip file, select Properties, and choose unblock.
There are two versions of the database agent: one that is 32-bit and one that is 64-bit (new in 4.5.2). Choose a version based on your OS requirements.
Enter the following on the command line:
unzip dbagent-x.x.x.zip -d <db_agent_home>
You can have multiple Database Agents concurrently running the agent jar in the <db_agent_home> directory on the same machine. Some system properties may be required depending on how you'll be using the agents.
Obtain a license.lic file with Database Monitoring licensing from your sales or support representative and put the license file in the directory where you installed the Controller. After placing the license in the directory, the Controller may take a minute or two to detect the new license. Restarting the Controller forces it to detect new licenses.
You can configure properties for the Controller host name, port number, and account access key using either the <db_agent_home>/conf/controller-info.xml file or by adding system properties to the Database Agent startup script.
Configure using controller-info.xml: <controller_host>
Configure using System Properties: -Dappdynamics.controller.hostName
Configure using controller-info.xml: <controller_port>
Configure using System Properties: -Dappdynamics.controller.port
Default: For On-premise Controller installations: Port 8090 for HTTP and 8181 for HTTPS communication.
For SaaS Controller service: Port 80 for HTTP and port 443 for HTTPS communication.
Configure using controller-info.xml: <account_access_key>
Configure using System Properties: -Dappdynamics.agent.accountAccessKey
Configure the agent to use SSL, see Enable SSL for Communicating with the Controller.
Configure the agent to use Proxy Settings, see Proxy Settings for the Controller.
The following assumes that all the necessary parameters have been specified in the controller-info.xml.
You can use a script to start the agent. This is the recommended method.
./start-dbagent -Xms<min_heap_size> -Xmx<max_heap_size> &
start-dbagent.bat -Xms<min_heap_size> -Xmx<max_heap_size>
Alternatively, you can launch the agent with the following Java commands.
java -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=“kill -9 %p” -jar db-agent.jar
C:\java -Djava.library.path="<db_agent_home>\auth\x64" -Ddbagent.name="Scarborough Network Database Agent" -jar <db_agent_home>\db-agent.jar
Configure using System Properties: -Ddbagent.name=<db_agent_name>
Type: ASCII string, including spaces. If <db_agent_name> contains spaces, you must enclose the entire name in double quotes (" ").
Required: Yes, when you have multiple agents reporting to the same controller.
Default: Default Database Agent
Configure using System Properties: -Djava.library.path=<db_agent_home>\auth\x64
Type: ASCII string, including spaces. If <db_agent_home> contains spaces, you must enclose the entire name in double quotes (" ").
Required: Yes, for Windows only
For 64-bit systems: <db_agent_home>\auth\x64
For 32-bit systems: <db_agent_home>\auth\x86
To monitor multiple databases, you may need to increase the JVM memory allocation size. Increased activity on the databases you are monitoring results in increased memory usage.
Use one of the following commands to start the agent, and to initially allocate 1536 MB to the agent instead of the default of 64 MB.
C:\java -Xmx1536m -Djava.library.path="<db_agent_home>\auth\x64" -jar <db_agent_home>\db-agent.jar
% java -Xmx1536m -jar <db_agent_home>/db-agent.jar