0

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.

Can I get some help with step 2, i.e. how can I determine which JVM is being used by the running application?

Thanks in advance.

APMFreak
  • 1
  • 1
  • 3

2 Answers2

0

You can use jconsole, jvisualvm or jhat tools which are shipped along with JDK for all the things you mentioned.

Jugal Shah
  • 3,621
  • 1
  • 24
  • 35
  • jconsole and jvisualvm are GUIs, is there any command line option available for aforesaid requirements? (I am actually trying to develop a batch process for the same) – APMFreak Mar 11 '13 at 09:19
  • Take a look at jhat, jcmd, jdb and others which you find under $JAVA_HOME\bin directory. – Jugal Shah Mar 11 '13 at 10:39
0

I found following links which is related to your question. please refer

Setting up Monitoring and Management Programmatically

List of running JVMs on the localhost from stack overflow

Community
  • 1
  • 1
Abhishek Kumar
  • 229
  • 1
  • 5