JMX Access to Standalone EAP 6: Difference between revisions
Line 45: | Line 45: | ||
==Server Endpoint Authentication== | ==Server Endpoint Authentication== | ||
A generic JMX client usually provides a username and a password when connecting. Those values must be explicitly added to the Management Realm, for the server instance we connect to. The procedure to add a user to the Management Realm is presented in detail here: | |||
[[https://kb.novaordis.com/index.php/Adding_Users_to_WildFly_Security_Realms#Add_a_User_to_the_Management_Realm|Add a User to the Managment Realm]] | |||
=JMX Client= | =JMX Client= |
Revision as of 18:30, 18 October 2016
External
- Accessing JMX with jconsole over SSL on EAP 6 https://access.redhat.com/solutions/632773
Internal
Overview
A generic JMX client connects to a standalone EAP 6 instance using the native endpoint of the standalone instance's management interface. For an in-depth explanation on how that works, see Remoting Concepts - Remoting and JMX Access. Specific JBoss libraries must be added to the generic client's classpath, and we will show how those can be added for Visual VM and jconsole. Also, the access must be secured by adding a specific user and its associated password to the management realm, associated with the native management interface.
Server Endpoint
A generic JMX client must connect to the native endpoint of the standalone instance's management interface.
The network interface and port binding for the endpoint are specified as "management-native" socket binding:
<socket-binding-group name="standard-sockets" ...> ... <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/> </socket-binding-group>
The port value is 9999.
If the standalone instance runs with a specific port offset, the management endpoint port value must account for that offset.
The actual value for the management interface bind address is specified under the "management" interface specification:
<interfaces> <interface name="management"> <inet-address value="${jboss.bind.address.management:127.0.0.1}"/> </interface> ... </interfaces>
Unless explicitly re-configured, the default bind address for the management interface is 127.0.0.1.
Server Endpoint Authentication
A generic JMX client usually provides a username and a password when connecting. Those values must be explicitly added to the Management Realm, for the server instance we connect to. The procedure to add a user to the Management Realm is presented in detail here:
[a User to the Managment Realm]
JMX Client
JMX Client Classpath
URL
Authentication
JBoss Remoting provides the transport of the JSR-160 Java Management Extensions (JMX) Remote API compliant implementation of a JMXConnector that can be used by standard monitoring applications to access the JMX bus. A JMX client must be configured to connect to the