jvm-mon icon indicating copy to clipboard operation
jvm-mon copied to clipboard

Export Protocol

Open ghost opened this issue 7 years ago • 4 comments

Hi, I was curious if there is an option to load the program into a JVM and recieve data and collection to a database or log file? I wrote a pull request a while back and really like the concept.

ghost avatar Dec 29 '17 09:12 ghost

Hi! Not directly, but jvm-mon uses a library called jvmtop to poll JVM stats: https://github.com/ajermakovics/jvm-mon/blob/master/src/main/kotlin/jvmmon/JvmStats.kt It should be possible to use jvmtop in another JVM app and log stats to a file. However, not sure if this is the easiest solution. There might be APM tools out there that do this out of the box.

ajermakovics avatar Dec 29 '17 09:12 ajermakovics

So your saving it can be load with a jvm argument "-javaagent:jvmtop.jar" something to gather method level data another metrics possibly. Thanks for the quick response you have a impressive tool. I have been doing java performance a while and this is the closest I can see without buying new relic or app dynamics.

ghost avatar Dec 29 '17 09:12 ghost

It doesn't provide a java agent so to use it you would need to add code to your application to get stats and write to a file. There are some open-source APM solutions like stagemonitor, pinpoint or glowroot.

ajermakovics avatar Dec 29 '17 10:12 ajermakovics

Thank you

ghost avatar Dec 29 '17 10:12 ghost