How to collect JVM performance statistics from java

I want to write a JUnit test file that will also be able to track and collect JVM parameters such as memory usage, heap size and other custom JMX beans files, etc. I will have the JMX JVM address. More clearly, I would like to know if I can collect the information that jconsole provides, but programmatically without a user interface. And then I would like to check if the performance of the JVM has deteriorated or not by integrating it with Jenkins. Are there any tools available that do this?

+5
source share
1 answer

You might consider using a virtual machine agent, here is a good tutorial article

Profiler eclipse .

0

All Articles