Should -XX:+UseContainerSupport flag be used in OpenJDK images?

Solution Verified - Updated -

Issue

  • JVM options -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap are used for application, should -XX:+UseContainerSupport flag also be applied?

Environment

  • Red Hat build of OpenJDK
    • OpenJDK 1.8.191+
    • OpenJDK 11
    • Openshift Image with redhat-openjdk-18/openjdk18-openshift

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