Increment in Red Hat Satellite tomcat/candlepin heap memory size is not reflected in the process after restart

Solution Verified - Updated -

Issue

  • The heap size of the tomcat server in Red Hat Satellite 6.9 needs to be incremented for performance reasons.
  • The configuration is done in file /etc/foreman-installer/custom-hiera.yaml like in the e.g:

    candlepin::java_opts: "-server -Xms8g -Xmx8g -XX:+UseParallelGC -XX:ParallelGCThreads=16"
    
  • The configuration in custom-hiera.yaml is applied with the command satellite-installer

  • After apply the changes, execute the command foreman-maintain services restart to restart the tomcat process and take the new values.

  • The tomcat process still shows the old memory values, like in the e.g.:

    [root@server ~]# ps aux | grep tomcat
    tomcat    69934  191  2.1 16580756 2854988 ?    Ssl  19:42   3:59 /usr/lib/jvm/jre/bin/java -Xms4096m -Xmx4096m    -XX:+UseParallelGC -XX:ParallelGCThreads=20 -Djava.security.auth.login.config=/usr/share/tomcat/conf/login.config -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
    

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • Red Hat Satellite 6.9

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