4

Jconsole is great in monitoring java application through JMX.

Once connected and running, it could display the whole Memory/Heap/CPU/Thread history of the monitored program.

I just wondering if there is any way to export the result,

and then can load to display the result again?

Instead of just making a screen shot. Is there any 3rd party plugin can do this?

Have googled but without any luck.

moonese
  • 483
  • 1
  • 6
  • 15
  • 3
    If on Java 6, have you considered using [jvisualvm](http://download.oracle.com/javase/6/docs/technotes/tools/share/jvisualvm.html) instead? It has the ability to to save and view a snapshot of your application profile (CPU, heap, classes & threads), and more... – Alistair A. Israel Nov 09 '11 at 02:19
  • Yes, I am using both visualvm and jconsole, and there is one problem in visualvm that the charts can only display a quite short period of time. I have checked visualvm again, and found that we can change the charts display time by _Option -> General -> Charts Cache_. Thanks @AlistairIsrael, visualvm is the tool I want. – moonese Nov 09 '11 at 02:33

2 Answers2

2

In summary graph you can export sub areas by right clicking and selecting 'export' to csv.

mordechai
  • 127
  • 2
  • 10
  • 1
    Is there anyway to do this programatically? As in I am monitoring an application overnight. But jConsole keeps getting disconnected for some reason so I would like to keep exporting data and appending at a certain frequency. – Avinash Jul 16 '14 at 06:26
1

You can also install and configure JMXTRANS (http://www.jmxtrans.org/) which enables JVM remote monitoring so as to send time series data to a centralized monitoring tool such as GRAPHITE (http://graphite.readthedocs.io/en/latest/).

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
Pascal
  • 11
  • 1