Open mbazos opened 1 year ago
Hey @mbazos :-) . I might have seen this one before, but I struggle a little bit to remember what. To be honest this side project is lagging a bit behind, and I´m struggling to keep up with a busy "day job". In the meantime you could try to build Java mission control from this branch and see whether it works better: https://github.com/skarsaune/jmc/tree/jolokia-support I do have an open PR for mission control, but I struggle with some test pipeline issues, that I focus on fixing first. It is no problem to build and run it though.
Thanks @skarsaune I will give that a try.
@skarsaune finally got the build working for jmc and in fact that branch does work and I am able to record a a JFR recording. For anyone else seeing this to get this to work with JMC you need to use this modified branch:
https://github.com/skarsaune/jmc/tree/jolokia-support
Once built you can run an app using Jolokia in my case I used the Java Agent 1.7.0 and once JMC started up created a new connection using the following:
service:jmx:jolokia://127.0.0.1:7777/jolokia/
While this does work and is pretty awsome, JMC 9.x is pretty out of date and I wonder if there is anyway to get this working with the latest version of JMC that's built from the mainline sources (not a forked branch). I will let the Jolokia team know this works not sure if they could take a look at your commits to help with support for JFR & JMC in general.
Thanks for the help @skarsaune
Great find @mbazos . Now I can look a bit on both jolokia and jmc for where the solution lies.
@skarsaune Thanks for creating this plugin for Jolokia. I was getting it setup with the versions you stated but when I start a JFR recoding via eclipse I get the following exception. I am not sure what I did wrong or if I have the incorrect/incompatible versions but I am using
Jolokia JVM agent is 1.7.2 Eclipse + JMC - 8.1
I am able start the JMX console but I am unable to do a flight recoding I get this error in Eclipse JFR when I attempt to start a recording:
Any information on this would be helpful.