Open andrewazores opened 11 months ago
Came across this VisualVM issue: https://stackoverflow.com/a/38455790. Adding -Djboss.platform.mbeanserver=true
fixed it for us too.
Maybe we should set up a project wiki to track specific bugs and workarounds like that.
Came across this VisualVM issue: https://stackoverflow.com/a/38455790. Adding
-Djboss.platform.mbeanserver=true
fixed it for us too.
I might have spoken too soon. I think I just missed the exception in the logs the first time.
I can do some deeper digging to see if it's feasible to replace all of the Agent's internal uses of various MBeans with direct accesses, but IIRC there was something that we're using from the FlightRecorderMXBean
which the jdk.jfr
package doesn't have in its API. At the very least this is likely to break the Smart Triggers functionality which explicitly depends on reading metrics from MBeans.
Hello, this jira came to my attention today April 2nd by @Leticia Konno. Which EAP version is that specifically? I remember there was some discussion about agent usage and MODULES_OPTS, and for 7.4+ I'd try moving the agent to MODULE_OPTS so it doesn't start too early and see if that resolves it. I explain this here: https://access.redhat.com/solutions/7021605
I can do some deeper digging to see if it's feasible to replace all of the Agent's internal uses of various MBeans with direct accesses, but IIRC there was something that we're using from the
FlightRecorderMXBean
which thejdk.jfr
package doesn't have in its API. At the very least this is likely to break the Smart Triggers functionality which explicitly depends on reading metrics from MBeans.
This was fixed in https://github.com/cryostatio/cryostat-agent/pull/280 .
@FranciscoMeloJr I can't recall which EAP version we tested at the time I filed this bug report. @ebaron @sefroberg do you know? We had a lot of discussions back then about MODULES_OPTS
and things as well and IIRC we did come up with some form of workaround.
I think the problem we wre facing with EAP 7.4+ with MODULE_OPTS
was due to jboss-modules trying to load jars from the manifest's Class-Path
entry. That's been removed with https://github.com/cryostatio/cryostat-agent/pull/311, so I would expect this to work now, but I haven't tested it myself yet.