Thursday, September 17, 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/





4 comments:

  1. 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
  2. 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