18 June 2018

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 above steps it will unlock commercial features of weblogic, and will not allow to run any new java instance on same host and gives 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 above tool.

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

k/r
P

No comments:

Post a comment