Splunk AppDynamics

how to run multiple machine agent for multiple jvm (more than one microservices) running on one VM.

CommunityUser
Splunk Employee
Splunk Employee

Is it error if i wont run multiple machine agent for my multiple java microservices which are running on same machine ?

If answer is yes i.e multiple machine agent to be configured for each appagent running on machine then why it is required to copy separate machineagent directory for each instance of machine agent per appagent pair. 

i am running three java services on one machine say linuxvm 

linuxvm --> myapp1 (java parameter passed to appagent )

-Dappdynamics.agent.tierName=myapp1 -Dappdynamics.agent.uniqueHostId=myapp1 -Dappdynamics.agent.nodeName=linuxvm-myapp1

 

linuxvm--> myapp2

-Dappdynamics.agent.tierName=myapp2 -Dappdynamics.agent.uniqueHostId=myapp2 -Dappdynamics.agent.nodeName=linuxvm-myapp2

 

linuxvm --> myapp3

-Dappdynamics.agent.tierName=myapp3 -Dappdynamics.agent.uniqueHostId=myapp3 -Dappdynamics.agent.nodeName=linuxvm-myapp3

 

Question is if 3 machine agent needs to be run for each appagent on same machine then do i have to configure tiername and nodename parameter again in machineagent controller.xml config file  or just put uniquehostid parameter ?

 

Labels (1)
0 Karma

Jeanie_Kedia1
Communicator

@Anonymous did you find an answer you can share for this question in the community, how did it go? Or are you still in need of assistance?

0 Karma

Vijay_Kumar_Ant
Explorer

@ankjain

You can try to use only 1 machine agent package however run 3 different machine agent process to pair and associate with your 3 JVms each of which is pointing to different Tier.

In the machine agent config DON'T specify app name, tier or node name.  Just start 3 different machine agent process by just passing uniqueHostId only. This way each machine agent process should pair and associate with each JVMs reporting in different tiers.  Let me know how it goes.

Something like below

nohup <path_to_java>/bin/java -Dappdynamics.agent.uniqueHostId=myapp1 -jar <path_to_machineagent>/machineagent/machineagent.jar &

nohup <path_to_java>/bin/java -Dappdynamics.agent.uniqueHostId=myapp2 -jar <path_to_machineagent>/machineagent/machineagent.jar &

nohup <path_to_java>/bin/java -Dappdynamics.agent.uniqueHostId=myapp3 -jar <path_to_machineagent>/machineagent/machineagent.jar &

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

yes i need assistance i did not find any answers at the moment. 

0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...