Memory reserved for Tomcat

Asked

Viewed 732 times

0

My system is on a server that has several Tomcats, I need to disable the Tomcat that has more memory reserved for it.

How I see the memory reserved for each Tomcat on the server?

1 answer

0


The Memory Heap used by Tomcat is defined by the parameter jvm -Xmx.

Check if the environment variable exists

CATALINA_OPTS=-Xms64m -Xmx256m

Check if the above variable is used by the following script: Also check the parameter JAVA_OPTS -Xmx1024m in the scripts below

tomcat-install/bin/catalina.sh(.bat) 
tomcat-install/bin/startup.sh(.bat) 

A simpler way is to simply run the command, but only under linux

ps -ef | grep java 

and search for the Tomcat instance by checking the parameters Xms and Xmx

  • This ps -Ef | grep java command I can run on the server CMD?

  • Yes as long as it’s linux

  • Unfortunately it is windows, the company let install in this blessing.

  • I edited the answer, as it is windows you need to look at the files . bat of the installation to see the memory allocated to the server

Browser other questions tagged

You are not signed in. Login or sign up in order to post.