tomcaty启动异常之Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000eaaa0000, 3

1.异常描述

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000eaaa0000, 357957632, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 357957632 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /opt/tomcat/svnadmin-tomcat/conf/hs_err_pid6274.log

2.解决方案

catalina.sh 文件添加

[root@izwz91h49n3mj8r232gqwez bin]# pwd
/opt/tomcat/hudson-tomcat/bin
[root@izwz91h49n3mj8r232gqwez bin]# vim catalina.sh 

JAVA_OPTS="-server -Xms256m -Xmx512m  -XX:PermSize=128m -XX:MaxPermSize=256m" 

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/u014636209/article/details/84990602