Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on
06-23-2017
09:16 AM
- edited on
04-27-2021
04:00 PM
by
Claudia.Landiva
This article describes how to configure multiple JVMs for the AppDynamics Java Agent when they reside on a single machine. In the AppDynamics model, the JVMs may serve the same or different tiers.
Whether the JVMs serve the same or different tiers:
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:
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 whitespace character.
For this case, you differentiate the node and tier names in the JVM startup script and controller-info.xml for the other settings, as follows:
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 whitespace character.
Some application server management consoles allow you to specify start-up arguments using a web interface.
To attach the same single Java Agent with different java applications:
Note: If all the applications are actually instances of the same application, you can skip adding applicationName. Instead, add this common argument (i.e., applicationName or tierName) to controller-info.xml.
For more information on how to install the Java Agent see Install the Java Agent
Questions:
1) I have 3 java applications so how I can deploy in a single controller system?
2) I am planning 3 tomcat installations in different folders in same system
3) Single Java agent installation in the same system
4) 3 tomcat folders I am planning to modify the startup.bat to use the single controller. I hope this is only the method to have multiple applications on single controller.
@lucky.bakshi :
Yes, you can use same single java agent to attach with 3 different java applications. Make sure that you provide different node names for each of these applications, because Javaagent writes node specific logs and configuration files to the javaagent installation directory under "Node name" folder.
* Apart from adding -javaagent argument to JAVA_OPTS/CATALINA_OPTS, you also need to add the following arguments:
-Dappdynamics.agent.applicationName=<>,
-Dappdynamics.agent.tierName=<> and
-Dappdynamics.agent.nodeName=<>
* Add other remaining common setting details in controller-info.xml file.
Note: Among the aforementioned three arguments, we can skip adding applicationName if all 3 applications are actually instances of the same application. Instead, add this common argument ie. applicationName to controller-info.xml. Same for tierName.
Thank you both, @lucky.bakshi and @Priya.Chhillar. I've updated the article with your question and reply. Your engagement makes the community better.
– Claudia Landivar (Community Manager & Editor)
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form