Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get csv data used to create graphs in Jconsole

Tags:

java

jconsole

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.

like image 292
Space Avatar asked Feb 03 '23 07:02

Space


1 Answers

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.

like image 131
VonC Avatar answered Feb 05 '23 20:02

VonC