title: How to determine which JVM is attached to the running application?
body: <p>I want to build a workflow in BMC Atrium Orchestrator which takes the heap dump of particular java process. The flow which I have to follow is :
  1. Input the application name.
  2. Find the JVM which is being used by the entered application.
  3. Take heap hump of a process running on that JVM.</p>
  
  <p>Can I get some help with step 2, i.e. how can I determine which JVM is being used by the running application?</p>
  
  <p>Thanks in advance.</p>