getPlatformMBeanServer finds wrong server

Solution Unverified - Updated -

Issue

  • getPlatformMBeanServer finds 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 by ManagementFactory.getPlatformMBeanServer(). Also , JBoss does add some MBeans to the platform MBean server when the JMX agent is turned on. It just doesn't add the jboss.as MBeans.

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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.