Skip to content

Instantly share code, notes, and snippets.

@kymtwyf
Last active October 26, 2015 13:00
Show Gist options
  • Save kymtwyf/85c27b37452295629abe to your computer and use it in GitHub Desktop.
Save kymtwyf/85c27b37452295629abe to your computer and use it in GitHub Desktop.
tomcat memory setup

Reference

Update Java Options for Tomcat

  • vim <TOMCAT_HOME>/bin/setenv.sh
  • export CATALINA_OPTS="-Xms1024M -Xmx2048M -XX:MaxPermSize=1024m"

Xmx: Max Heap size

Xms: Min amd Initial Heap Size

XX:MaxPermSize: In this past specially to modify in the Linux. By default it will be 384 MB, we have to change that to 512 MB

根据根据需求自定义容量大小

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment