Increment in Red Hat Satellite tomcat/candlepin heap memory size is not reflected in the process after restart
Issue
- The heap size of the
tomcatserver inRed Hat Satellite 6.9needs to be incremented for performance reasons. -
The configuration is done in file
/etc/foreman-installer/custom-hiera.yamllike in the e.g:candlepin::java_opts: "-server -Xms8g -Xmx8g -XX:+UseParallelGC -XX:ParallelGCThreads=16" -
The configuration in
custom-hiera.yamlis applied with the commandsatellite-installer -
After apply the changes, execute the command
foreman-maintain services restartto restart thetomcatprocess and take the new values. -
The
tomcatprocess 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.