Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

Instrument Multiple JVMs on a Single Machine

 

This article describes how to configure the AppDynamics Java Agent multiple JVMs that reside on a single machine. The JVMs may serve the same or different tiers in the AppDynamics model. 

In either case:

  • All of the common information should be configured using controller-info.xml.
  • All of the information unique to a JVM should be configured using the system properties (-D option) in the startup script.
  • Information in the startup scripts always overrides the information in the controller-info.xml file.
  • Any customizations to app-agent-config.xml and custom-activity-correlation.xml configuration will apply to all agents. 
This scenario can generate a lot of logs and disk IO activity. You can edit the log configuration at <agent_home>/<version_number>/conf/logging/log4j.xml to control the maximum size of individual logs and the number of logs the agent retains for log rotation.
 

Configure the Agents for the Same Tier

For this case, you only need to differentiate the node names in the JVM startup script and use controller-info.xml for the other settings, as follows:  

  1. Configure the application and tier name in controller-info.xml.
  2. Add the javaagent argument and system property for the node name to the batch file or startup script of each JVM.

    java -javaagent:<agent_home>/<version_number>/javaagent.jar -Dappdynamics.agent.nodeName=$nodeName

Separate the system properties with a white space character.

 

Configure the Agents for Different Tiers

For this case, you differentiate the node and tier names in the JVM startup script and and controller-info.xml for the other settings, as follows:

  1. Configure the application name in controller-info.xml.
  2. Add the javaagent argument and the system properties to the startup script to each of your JVM:

    java -javaagent:<agent_home>/<version_number>/javaagent.jar -Dappdynamics.agent.tierName=$tierName -Dappdynamics.agent.nodeName=$nodeName

Separate the system properties with a white space character.

Some application server management consoles allow you to specify start-up arguments using a web interface.

 

For more information on how to install the Java Agent see Install the Java Agent

Version history
Revision #:
8 of 8
Last update:
‎10-04-2018 03:40 PM
Updated by:
 
Labels (1)
Tags (1)


Found this article helpful? Click the Thumbs Up button.
Have an additional comment? Post it below.