Hi Amritesh,
Thanks for posting the question on the Community.
First, could you check different application name value is set in 2 agents’ controller-info.xml?
If this is the case, single machine agent will surely get associated to both APM nodes, because controller associates machine to APM based on hostname.
You can also check whether this happens by clicking “Settings”->”AppDynamics Agents”, and search your hostname in search query.
In this case, this is the steps to solve issue:
- Please stop one of the APM agent for which machine agent do not want to report
- Start APM Java agent with this argument:-Dappdynamics.agent.uniqueHostId=X_new
This makes machine agent not be associated to APM agent node because nodes have different hostname.
As the reference to know how machine agent works, please refer those documents:
Let me know if this helped you.
Many thanks,
Naoto