设置初始缓存大小

修改bin/catalina.bat文件,新增如下第一行:
java8:
set "JAVA_OPTS=-server -Xms1024m -Xmx2048m -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=1024m -XX:CompressedClassSpaceSize=256m"
java7:
set "JAVA_OPTS=-server -Xms1024m -Xmx2048m -XX:MaxNewSize=1024m -XX:PermSize=256m -XX:MaxPermSize=1024m"

set "JAVA_OPTS=%JAVA_OPTS% %JSSE_OPTS%"

Refer to

https://www.cnblogs.com/xhyan/p/6233239.html

posted on 2019-11-30 11:44  liehen2046  阅读(92)  评论(0编辑  收藏  举报