tomcat
在 linux 上的 tomcat 設定記憶體:
vi catalina.sh
在檔案最上方加入以下內容:
export CATALINA_OPTS="$CATALINA_OPTS -Xms2336m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx2433m"
export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=2433m"
export CATALINA_OPTS="$CATALINA_OPTS -Xms2336m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx2433m"
export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=2433m"