现象:启动报错
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 536870912 bytes for
committing reserved memory.
# An error report file with more information is saved as:
# /usr/local/apache-tomcat_04-7.0.64/hs_err_pid31180.log
Java HotSpot(TM) 64-Bit Server VM warning: INFO:
os::commit_memory(0x00000000bae00000, 536870912, 0) failed; error='Cannot
allocate memory' (errno=12)

解决:  再setenv.sh这里要重新调整内存,这种情况是设置的过大,包括-Xms512m -Xmx512m -Xss1m NewSize=256m -XX:MaxNewSize=512m这样的值,物理内存不够,把配置调小

技术
下载桌面版
GitHub
百度网盘(提取码:draw)
Gitee
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:[email protected]
QQ群:766591547
关注微信