My Oracle Support Banner

Java Mission Control and Flight Recorder Not Available in Early Versions of Java SE 7 Hotspot (Doc ID 1640014.1)

Last updated on MARCH 09, 2018

Applies to:

Java SE JDK and JRE - Version 7 to 7 [Release 7]
Oracle WebLogic Server - Version 10.3.6 to 10.3.6
Information in this document applies to any platform.

Goal

Although JRockit Mission Control and Flight Recorder are fully supported in Java 6-based JRockit versions (R28.*), the Java Mission Control and Flight Recorder are not available in Java SE (Hotspot) version 6. 

Java Mission Control and Flight Recorder are introduced to Java SE (Hotspot) in version Java SE 7 Update 25, but in a limited, unsupported capacity.

In Java SE 7u25, you can use jmc.exe to take a flight recording, but there is no data shown on the meters or graphs.  You'll notice the jcmd utility exists, and the JFR.start, JFR.check and JFR.stop commands are available, and they can be unlocked by adding the JVM command line flags:

java -XX:+UnlockCommercialFeatures and -XX:+FlightRecorder 

However, the recordings generated have no events captured at all.  Despite having the correct format, the resulting files are only few Kilobytes in size and show no data at all.

How can the data be displayed?

 

Also note that attempting to use the jcmd <pid> JFR.start command on a pre-Java 7u25 patch update process will result in attach errors similar to the following:

C:\Java\jdk1.7.0_10\bin\jcmd 5123 JFR.start duration=60s name=myRecording filename=C:\Java\jfr\myRecording.jfr
5123:
com.sun.tools.attach.AttachNotSupportedException: Insufficient memory or insufficient privileges to attach
at sun.tools.attach.WindowsVirtualMachine.<init>(WindowsVirtualMachine.java:64)
at sun.tools.attach.WindowsAttachProvider.attachVirtualMachine(WindowsAttachProvider.java:69)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:213)
at sun.tools.jcmd.JCmd.executeCommandForPid(JCmd.java:140)
at sun.tools.jcmd.JCmd.main(JCmd.java:129)

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.