Hi, I was looking at a Tomcat deployment and noticed settings in setenv.sh as shown below. I noticed that Xms and Xmx is in JAVA_OPTS and CATALINA_OPTS with the exact same settings. Do these settings make sense? What is the purpose of repeating those settings?
I understand that JAVA_OPTS is for the JVM and CATALINA_OPTS is specific to Tomcat. How do these settings relate to each other? I am assuming they could be different. Thanks and Regards, Onno JAVA_HOME="/usr/lib/jvm/jdk11_0411_oj9" JAVA_OPTS="-Xms3000m -Xmx3000m" CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=8375 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dfile.encoding=UTF-8 -Dsun.net.inetaddr.ttl=300 -server -Dorg.apache.tomcat.util.http.Parameters.MAX_COUNT=8192 -Xms3000m -Xmx3000m -XX:MaxPermSize=500m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+PrintGCDateStamps -verbose:gc -XX:+PrintGCDetails -Xloggc:"/opt/tomcat/tomcat-9.0.40/logs/garbage.log" -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory"