Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8176201

-XX:+UnlockCommercialFeatures -XX:+FlightRecorder options throw Unrecognized VM option

XMLWordPrintable

    • x86
    • linux

      FULL PRODUCT VERSION :
      openjdk version "1.8.0_121"
      OpenJDK Runtime Environment (build 1.8.0_121-b13)
      OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux dhcp-10-75-2-160 3.10.0-514.el7.x86_64 GNU/Linux - CentOS 7

      A DESCRIPTION OF THE PROBLEM :
      Create a simple java application and run the following command:
      java -XX:+FlightRecorder -XX:+UnlockCommercialFeatures MainClass

      Ouput:
      Unrecognized VM option 'FlightRecorder'
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.

      REGRESSION. Last worked in version 8u102

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a simple java application and run the following command:
      java -XX:+FlightRecorder -XX:+UnlockCommercialFeatures MainClass



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No exceptions thrown
      ACTUAL -
      Ouput:
      Unrecognized VM option 'FlightRecorder'
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class MainClass {
      public static void main(String[] args) throws InterruptedException {
      //TODO Auto-generated method stub
      int i = 10;
      while (i < 11) {
      System.out.println("sleeping1");
      Thread.sleep(1* //minutes to sleep
      60* //seconds to a minute
      1000);
      System.out.println("sleeping2");
      }
      }

      }

      ---------- END SOURCE ----------

            fmatte Fairoz Matte
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: