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

-XX:MaxRAMPercentage doesn't recognize integer number correctly

    Details

    • Subcomponent:
      gc
    • CPU:
      x86_64
    • OS:
      generic

      Description

      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


        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: