In this post I´ll talk about domain mode in JBoss EAP 6.2.
JConsole is in ${JBoss.home}/bin/jconsole.sh
Topology
This is my topology:- Domain Controller in 192.168.56.101
- Host Controller 1 in 192.168.56.102
- Host Controller 2 in 192.168.56.103
I Have a server-group called jbossEAP6-sg1 with two servers, each one in its own HC:
- server-full-ha-1 in HC 1, bound to 192.168.56.130
- server-full-ha-2 in HC 2, bound to 192.168.56.140
This domain is in a CentOS remote PC and I Will connect from my Windows installation.
Configuration
I want to monitor Domain Controller in general, and my servers in particular. So I will make two different connections.You have to configure jmx subsystem in domain.xml (this file is placed inside de Domain Controller). Once there you have to set the following config:
<subsystem xmlns="urn:jboss:domain:jmx:1.3"> <expose-resolved-model/> <expose-expression-model/> <remoting-connector use-management-endpoint="false"/> </subsystem>
Then, you need an application user in all the nodes (asuming you already have a management user in the domain). Simply use ./add-user.sh in DC, add a user, and copy the application-roles.properties and application-users.properties files in the others HCs.
Connection to DC
You can start your connection with the followning parameters:- Remote Process: service:jmx:remoting-jmx://192.168.56.101:9999
- Username/Password: domain user
Note that there is a CLI tab due to this is a DC.
Connection to server-full-ha-1 in HC 1
You can starts your connection with the followning parameters:- Remote Process: service:jmx:remoting-jmx://192.168.56.130:4447
- Username/Password: application user
Aditional info:
No hay comentarios:
Publicar un comentario