How to change JVM memory options using Openshift images with Java?

Solution Verified - Updated -

Issue

  • How to customize Xms/Xmx memory params for JBoss JVM?
  • Adding a JAVA_OPTS env variable in deploy config with memory sizings causes other values in JAVA_OPTS to be incorrect.

Environment

  • Red hat OpenShift Container Platform (OCP)
    • 4.x
    • 3.x
  • Red Hat Middleware for Openshift Containers
    • JBoss Enterprise Application Platform (EAP)
      • 6.4.x
      • 7.x
    • JBoss Web Server (JWS)
      • 3.x
      • 5.x
    • JBoss Data Virtualization
      • 6.x
    • JBoss BRMS Decision Server
      • 6.x
    • JBoss BPM Process Server
      • 6.x
    • Red Hat SSO
      • 7.x
    • Red Hat Process Automation Manager
      • 7.x
    • Red Hat Decision Manager
      • 7.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