[XPaaS]AMQ - How to change Xmx settings for AMQ 7.1 on OpenShift ?

Solution Verified - Updated -

Issue

  • The Xmx settings are hardcoded, and we can't override it:
jboss        1     0  0 15:41 ?        00:01:02 /usr/lib/jvm/java-1.8.0/bin/java -Djava.net.preferIPv4Stack=true -Xms256m -Xmx1024m -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=100m -XX:+ExitOnOutOfMemoryError -XX:+PrintClassHistogram -XX:+UseG1GC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx2G -Dhawtio.realm=activemq -Dhawtio.offline=true -Dhawtio.role=admin -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal -Djolokia.policyLocation=file:/home/jboss/broker//etc/jolokia-access.xml -Djon.id=amq -Xbootclasspath/a:/opt/amq/lib/jboss-logmanager-2.0.7.Final-redhat-1.jar -Djava.security.auth.login.config=/home/jboss/broker/etc/login.config -classpath /opt/amq/lib/artemis-boot.jar -Dartemis.home=/opt/amq -Dartemis.instance=/home/jboss/broker -Djava.library.path=/opt/amq/bin/lib/linux-x86_64 -Djava.io.tmpdir=/home/jboss/broker/tmp -Ddata.dir=/home/jboss/broker/data -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dlogging.configuration=file:/home/jboss/broker//etc/logging.properties org.apache.activemq.artemis.boot.Artemis run

Environment

  • Red Hat AMQ : 7.1.0
  • OpenShift : 3.x
  • Image : amq-broker-7-tech-preview/amq-broker-71-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