tags:

views:

209

answers:

2

newbie here. I have a java application and I am working on to monitor that java application. I come to know about the java monitoring and management control using 'JConsole'. It giving a very detailed graphical information about the running java process.

but the thing I am wondering is about the data used to generate the graphs. As in JConsole we can save the data in csv format by right clicking on running graph, Is there any command line option to get the data only in csv format.

+2  A: 

The command-line options for JConsole are only for starting JConsole, not for exporting its results.

The only way to get data from JConsole would be through JMX MBeans as suggested in this SO answer, but you would need to write those data in CSV format yourself.

VonC
I am null in Java language. Can this be done in perl.
Space
@Octopus: I am not sure. This is quite Java-centric.
VonC
@VonC: Thanks, Can you please also suggest me if there is any other tool from where I can get the similar data information.
Space
A: 

Google some client examples. Here's a quick one.

I've recently done exactly what you've described. It wasn't much work. One tip that cost me some time. If you are working with DynamicMBeans, the bean attachment approach in nearly every example I found won't work. You have to directly reference each value. See this question (mine)

Jim Rush