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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content