Search This Blog

Friday, December 23, 2016

JBOSS wont start on jdk8

There is a known bug with JBOSS , it won’t start on JDK 8 and will be stuck on boot itself.”Brontes”…

Change standalone.bat to point to jdk 7 or apply the patch from github and build yourself.

Else use wildfly 8.



Tuesday, December 20, 2016

Find loaded class in JVM via the class loader

If you are not sure what all classes are loaded in currently running jvm.
Nice trick to find out what all classes are loaded in the JVM.

Try running this.

java -verbose:class CPTest |findstr URL

It will grep your class and will tell if that is loaded or not.



Wednesday, December 14, 2016

jmx via mission controller

To enable jmx to be used with java mission control.

append the following to the java process, while starting the process.


-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=3614
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false