Friday, September 18, 2015

JBoss EAP 6 profiling - running jconsole and jvisualvm

JVisualVM and JConsole are part of Oracle Java SE

 JConsole

JConsole can be started with script provided already with JBoss EAP 6 installation
http://jaitechwriteups.blogspot.cz/2014/12/remote-jmx-access-to-wildfly-or-jboss.html

[dave@localhost jboss-eap-6.4.0]$ find -name  jconsole.sh
./bin/jconsole.sh


Connect via JMX remote process  - use connection string  service:jmx:remoting-jmx://localhost:9999
[dave@localhost bin]$ ./jconsole.sh 
CLASSPATH /usr/java/jdk1.8.0_45/lib/jconsole.jar:/usr/java/jdk1.8.0_45/lib/tools.jar:/app/jboss-eap-6.4.0/bin/client/jboss-cli-client.jar

 

 

 JVisualVM

To use JVisualVM   download script from GitHub here https://github.com/johnaoahra80/jboss-as-tool-integration/blob/master/visualvm/visualvm.sh

Using JVisualVM with JBoss AS7   https://developer.jboss.org/thread/196428

Here is more detailed description for connection http://blog.akquinet.de/2012/11/01/connecting-visualvm-with-a-remote-jboss-as-7-eap6-jvm-process/

CLASSPATH in the script must be modified  due to changed modules path
Add
 JBOSS_MODULEPATH="$JBOSS_HOME/modules/system/layers/base"


[dave@localhost bin]$ ./jvisualvm.sh 
/app/jboss-eap-6.4.0/modules/system/layers/base/org/jboss/remoting3/remoting-jmx/main/
ls: cannot access *.jar: No such file or directory
/app/jboss-eap-6.4.0/modules/system/layers/base/org/jboss/remoting3/main/
/app/jboss-eap-6.4.0/modules/system/layers/base/org/jboss/logging/main/
/app/jboss-eap-6.4.0/modules/system/layers/base/org/jboss/xnio/main/
/app/jboss-eap-6.4.0/modules/system/layers/base/org/jboss/xnio/nio/main/
/app/jboss-eap-6.4.0/modules/system/layers/base/org/jboss/sasl/main/
/app/jboss-eap-6.4.0/modules/system/layers/base/org/jboss/marshalling/main/
/app/jboss-eap-6.4.0/modules/system/layers/base/org/jboss/marshalling/river/main/





3 comments:

  1. Maxmunus Providing Free Webinar/Demo on JBoss. JBoss tutorial step to step process will help understanding JBoss tutorial in better way. also JBoss tutorial pdf include each and every detail of JBoss basics for beginners.


    For Registration Contact:
    Name : Arunkumar U
    Email : arun@maxmunus.com
    Skype id: arun@maxmunus.com
    Contact No: +91- 9738507310,
    Company Website :- http://www.maxmunus.com

    ReplyDelete
  2. Techforce services is a Salesforce Consulting Services in Australia Specialising in delivering end to end Salesforce solutions ,Consulting, Implementation DevOps partners in australia We deliver applications and services more rapidly and reliably, but it’s more than a methodology – it cuts to the very core.Salesforce Data Analytics let us help you become a data driven organisation and ensure your data is working hard for your business This includes implementi
    Techforce services in Australia
    Salesforce Consulting Services in Australia
    Salesforce Staff Augmentation in Australia
    Salesforce Data Analytics
    DevOps Partners in Australia
    Managed Projects Salesforce Australia

    ReplyDelete