Can jconsole data be retrieved from the command line?

前端 未结 9 2085
耶瑟儿~
耶瑟儿~ 2020-12-05 17:21

I am currently using jconsole to monitor performance metrics of my Java application and would like to script this data acquisition

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 17:47

    You might find jvm-mon useful for this. It is a JVM monitoring tool for the command line that disaplys:

    • jvm processes
    • cpu and GC usage
    • heap usage and size
    • top threads

    The metrics and charts update while the tool is open.

    Sample:

提交回复
热议问题