My system is on a server that has several tomcats, I need to disable the tomcat that has the most memory reserved for it.
How do I view the memory reserved for each tomcat on the server?
My system is on a server that has several tomcats, I need to disable the tomcat that has the most memory reserved for it.
How do I view the memory reserved for each tomcat on the server?
The memory heap used by tomcat is defined by the jvm -Xmx parameter.
Verify that the environment variable exists
CATALINA_OPTS=-Xms64m -Xmx256m
Make sure the above variable is used by the script below: Also check the JAVA_OPTS -Xmx1024m parameter in the scripts below
tomcat-install/bin/catalina.sh(.bat)
tomcat-install/bin/startup.sh(.bat)
A simpler way is simply to execute the command, but only in linux
ps -ef | grep java
and look for the tomcat instance by checking the Xms and Xmx