On August 3, 2021 7:34:37 PM UTC, Adam Elliott <aelli...@imedris.com> wrote:
Adam, As per the reasoning in Olaf's email you really should be using CATALINA_OPTS rather than JAVA_OPTS. Mark >From my understanding, setenv is not a default file, and any settings >inside are "custom". And all of these options are used by the JVM, so >in your case thy are probably redundant. I only use JAVA_OPTS under >setenv.sh and use it in a way to add my options to the startup. > >export JAVA_OPTS="$JAVA_OPTS\ > -XX:+UseParallelGC\ > -XX:ParallelGCThreads=20\ > -XX:+CMSClassUnloadingEnabled\ > -Xss256k\ > -Xms974M\ > -Xmn974M\ > -Xmx1948M" > >Adam > >-----Original Message----- >From: Onno van der Straaten <ostraa...@onknows.com> >Sent: Monday, August 2, 2021 7:57 PM >To: users@tomcat.apache.org >Subject: Xms Xmx in JAVA_OPT vs CATALINA_OPTS > >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" > > >CAUTION: This email originated from outside of your organization. Do >not click links or open attachments unless you recognize the sender and >know the content is safe. Do not reply to emails that contain a From >address you are unfamiliar with. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >For additional commands, e-mail: users-h...@tomcat.apache.org >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org