error='Cannot allocate memory'

版权声明:本文为 卤味人生 原创文章,未经博主允许不得转载。 https://blog.csdn.net/luwei42768/article/details/78176630

阿里云服务器上已经启动了3个tomcat,当再启动第4个tomcat时,

Oct 08, 2017 6:49:23 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /home/weixinserver/webapps/cat.war
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000eca00000, 15728640, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 15728640 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /home/weixinserver/hs_err_pid17919.log

vim catalina.sh
添加:
JAVA_OPTS=”-Xms512m -Xmx768m -Xss1024K -XX:PermSize=328m -XX:MaxPermSize=656m”

展开阅读全文

没有更多推荐了,返回首页