JDK-8219312 : -XX:MaxRAMPercentage doesn't recognize integer number correctly
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 8u192
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86_64
  • Submitted: 2019-02-19
  • Updated: 2019-02-19
  • Resolved: 2019-02-19
Related Reports
Duplicate :  
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



Comments
This issue is already fixed in JDK10 b23 (JDK-8186248) Please update to latest JDK [1] to avoid this issue [1] https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html
19-02-2019