getPlatformMBeanServer finds wrong server
Issue
getPlatformMBeanServerfinds wrong server . I am hitting exactly this problem https://developer.jboss.org/thread/240260- When I turned on the JMX agent on one of the applications that runs on JBoss, it started throwing errors because it doesn't find the
jboss.as..MBeans. The reason it doesn't find them may be because they are not registered on the MBeanServer returned byManagementFactory.getPlatformMBeanServer(). Also , JBoss does add some MBeans to the platform MBean server when the JMX agent is turned on. It just doesn't add thejboss.asMBeans.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
