Bootstrap FreeKB - Tomcat - Change heap size
Tomcat - Change heap size

Updated:   |  Tomcat articles

The setenv.sh file contains the minimum and maximum heap size for each application server. The setenv.sh file should be located at ${tomcat_home}/bin/setenv.sh.

  • -Xms = minimum heap
  • -Xmx = maximum heap

In this example, the minimum heap size is 256 KB and the maximum heap size is 128 MB. If you change the minimum or maximum heap size, you will need to restart the application server for the change to take effect.

-Xms256K
-Xmx128M

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter bd54d6 in the box below so that we can be sure you are a human.