Noelette,

On 6/16/21 11:29, Noelette Stout wrote:
Thanks! I was mostly trying to figure out if there was precedence or if it
was additive (i.e. 2GB to tomcat itself and another 2GB to the apps). We're
having some resource issues on one of our servers, so I wanted to make sure
I understood how the resources were being allocated.

No additivity at all: the last one on the command-line wins. There is no heap separation between Tomcat and the applications: it's one(ish) big, happy heap. :)

A note about CATALINA_OPTS versus JAVA_OPTS: when you use the various scripts provided by Tomcat, CATALINA_OPTS is only used when launching a Tomcat instance. JAVA_OPTS is used when launching *any* Java process. There are many Java processes those scripts will launch that aren't actually launching Tomcat. Examples include:

1. catalina.sh configtest
2. catalina.sh stop (also shutdown.sh)
3. catalina.sh version
4. tool-wrapper.sh [anything]

In all of those cases, JAVA_OPTS will be passed to the JVM.

Do you really need a 2 gig heap to send a "shutdown" command to a running server? Probably not.

-chris

On Wed, Jun 16, 2021 at 9:17 AM Rob Sargent <rsarg...@xmission.com> wrote:



On 6/16/21 9:06 AM, Noelette Stout wrote:
openjdk version "1.8.0_292"


On Wed, Jun 16, 2021 at 9:04 AM Rob Sargent <rsarg...@xmission.com>
wrote:


Both as for the same minimum so you should get 2G at start up.  I'm not
sure which has precedency but I would be on java opt.  I don't have a
catalina env, but you can see how CATALINA_OPTS is used in relationship
with JAVA_OPTS


---------------------------------------------------------------------
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

Reply via email to