cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create multiple instances for java agent on one host?

rajanikanthanka
Inactive

Hi,

We are having different applications running on a host. I want to know is it just passing JAVA_OPTIONS for JVM startup file or is there any different procedure for running multiple Java agents on one host?

Thanks,
Rajani

4 REPLIES 4

Joe_Hoffman
Dynatrace Champion
Dynatrace Champion

Use a single agent installation and have each JVM point to the same JVM agent file. It is advised to use different agentname values for each jvm to help differentiate them.

Joe,

Is it not a regular Agents (and all Unix based OS, without web server agents) installation?

I am already having 2 apps(2 java agents)running on one server but One Agent was not installed previously.

Joe_Hoffman
Dynatrace Champion
Dynatrace Champion

There's no need to have separate java agent file directories, but there's also nothing wrong with doing that. If you have seperate Java agent file directories, simply point each JVM agent parameter to a different directory for the .so file. There is nothing that will collide between the multiple agents in this situation.

Babar_Qayyum
Leader

Hello Rajanikanth,

The configuration string for the Java Agent is very similar for all platforms using Java, but there are some differences where and in what dialog box or file to place it.

For Linux, to instrument a Java application with a default installation of AppMon, all on one machine and all 64-bit, and the Agent mapping into the e.g. mySystemProfile, add the following:

`-agentpath:/opt/dynatrace-7.0/agent/lib64/libdtagent.so=name=Java_mySystemProfile,collector=localhost

For Windows, add the following:

`-agentpath:C:\Program Files\dynaTrace\dynaTrace 7.0\agent\lib64\dtagent.dll=name=Java_mySystemProfile,collector=localhost`

Have a look on the following documentation link for more understanding.

https://www.dynatrace.com/support/doc/appmon/installation/set-up-agents/java-agent-configuration/

Regards,

Babar