UBI 9 OpenJDK images have MaxPercentage is set at 50/50

Solution Verified - Updated -

Issue

  • Ubi 9 OpenJDK images have MaxPercentage is set at 50/50
  • The following test shows the ubi9 image comes with 50/50:
$ docker run -it registry.access.redhat.com/ubi9/openjdk-17:latest java -XX:+PrintFlagsFinal  | grep -i maxram
uint64_t MaxRAM                                   = 137438953472                           {pd product} {default}
    uintx MaxRAMFraction                           = 4                                         {product} {default}
   double MaxRAMPercentage                         = 25.000000                                 {product} {default}

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 9.x
    • ubi 9 image
  • OpenJDK 8, OpenJDK 11, OpenJDK 17
  • Red hat OpenShift Container Platform (OCP)
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content