Wednesday, January 22, 2014

jboss EAP 6.2.0 Remote JMX monitoring in domain mode

In the domain.xml of the domain controller the profile of the server should contain the following:


            
               
               
               
           


On the host which runs the server a application user must be created with $JBOSS_HOME/bin/add_user.sh

The JMX port is defined in the socket-binding-group. For example if standard sockets is used than the jmx port is 4447. And with the port-offset it is possible to define differt ports for every server.

And now comes the trick. Install a jboss server on your machine with the same version. In the $JBOSS_HOME/bin there is an script jconsole.sh this script sets the right environment for jconsole (jars).

If jconsole is started the connection can be made:

service:jmx:remoting-jmx://ip_address:port


Did this post help you in any way can you please leave a comment? This will motivate me writing more posts.

5 comments:

  1. I have two machine, one is a domain controller and other is host controller (HC). On HC I have two server, I want to monitoring via JConsole, this server, so i create an application user HC decomment this line:

    on domain.xml (HC)
    but when I connect from my client to HC via VisualVM o Jconsole, don't work for me.
    Have any idea? Thanks

    ReplyDelete
  2. please, can you rewrite what should contain the domain.xml. I can't see it. Thanks

    ReplyDelete
  3. Did you find an answer ? I am trying to connect my application deployed in jboss 6.2 in remote server from my local. not able to success using jconsole or visualVM.

    ReplyDelete
  4. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Alfresco , kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on Alfresco. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us:
    Name : Arunkumar U
    Email : arun@maxmunus.com
    Skype id: training_maxmunus
    Contact No.-+91-9738507310
    Company Website –http://www.maxmunus.com


    ReplyDelete

comment