18 June 2014

JAVA FLIGHT RECORDER

To run JAVA FLIGHT RECORDER for any java process do the following

# set Domain Env
$ /bin/./setDomainEnv.sh $ jcmd PID JFR.start duration=60s filename=myrecording.jfr

ref: how to use JFR

remember after running the above steps it will unlock commercial features of weblogic, will not allow to run any new java instance on the same host, and gives a message like



<"ResourceManagement" is not enabled in this JVM. Enable "ResourceManagement" to use the WebLogic Server "Resource Consumption Management" feature. To enable "ResourceManagement", you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.> 


so you need to disable this commercial feature by restarting the JVM for which you have used the above tool.

jcmd unlock's commercial features of product at first use.

--

No comments:

Post a Comment