Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Protocol #22

Open
ghost opened this issue Dec 29, 2017 · 4 comments
Open

Export Protocol #22

ghost opened this issue Dec 29, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Dec 29, 2017

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.

@ajermakovics
Copy link
Owner

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.

@ghost
Copy link
Author

ghost commented Dec 29, 2017

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.

@ajermakovics
Copy link
Owner

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.

@ghost
Copy link
Author

ghost commented Dec 29, 2017

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant