Java Flight Recorder (JFR) is a tool for monitoring Java applications. JFR is integrated into Java Virtual Machine (JVM). It have less than 1% overhead and is capable for monitoring production systems without affecting performance.
To enable JFR with the JVM that will run a WebLogic server we need to start the WebLogic using 2 flags:
The JVM default JMX port is 7091. We can change it and set it for example to 7093 using:
This is useful when monitoring multiple managed servers on the same machine. Each managed server can have it's own port.
For development servers we can also disable authentication and SSL using the following (this is an insecure setting, do not use it with production machines):
We can then open the Java Mission control using the jmc command from JAVA_HOME bin folder
To enable JFR with the JVM that will run a WebLogic server we need to start the WebLogic using 2 flags:
-XX:+UnlockCommercialFeatures
-XX:+FlightRecorder
The JVM default JMX port is 7091. We can change it and set it for example to 7093 using:
-Dcom.sun.management.jmxremote.port=7093
This is useful when monitoring multiple managed servers on the same machine. Each managed server can have it's own port.
For development servers we can also disable authentication and SSL using the following (this is an insecure setting, do not use it with production machines):
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
We can then open the Java Mission control using the jmc command from JAVA_HOME bin folder
$ cd $JAVA_HOME/bin
$ ./jmc