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

-XX:MaxRAMPercentage doesn't recognize integer number correctly

XMLWordPrintable

    • gc
    • x86_64
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      openjdk version "1.8.0_191"
      OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12)
      OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      -XX:MaxRAMPercentage doesn't recognize integer number correctly

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      java -XX:MaxRAMPercentage=10 -version


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No error
      ACTUAL -
      Improperly specified VM option 'MaxRAMPercentage=10'
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.

      CUSTOMER SUBMITTED WORKAROUND :
      add .0 to value like this:
      java -XX:MaxRAMPercentage=10.0 -version

      FREQUENCY : always


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

              Created:
              Updated:
              Resolved: