首页 最新文章网站服务器正文

Native memory allocation (malloc) failed问题解决方法

系统打了一下安全补丁后,appcan的版本升级推送平台在启动tomcat的时候报如下错误

2019-06-28 14:07:06:INFO main org.springfRAMework.web.context.ContextLoader - Root WebapplicationContext: initialization started
2019-06-28 14:07:06:INFO main org.springframework.web.context.support.XmlWebAPPlicationContext - Refreshing Root WebApplicationContext: startup date [Fri Jun 28 14:07:06 CST 2019]; root of context hierarchy
2019-06-28 14:07:06:INFO main org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [application-context.xml]
2019-06-28 14:07:08:INFO main org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [application-context-hibernate.xml]
java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000007e5600000, 446693376, 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 446693376 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/share/tomcat6/hs_err_pid25844.log

左手Excel右手VBA此处内容已经被作者隐藏,请输入验证码查看内容
验证码:
请关注本站微信公众号,回复“验证码”,获取验证码。在微信里搜索“左手Excel右手VBA”或者“URItker”或者微信扫描右侧二维码都可以关注本站微信公众号。


通过日志可以看出,是实际所要分配的内存超过了系统可以分配能力,导致启动失败

配置内容如下:

JAVA_OPTS="${JAVA_OPTS} -Xms512m -Xmx4069m -XX:PermSize=1024m -XX:MaxNewSize=1024m -XX:MaxPermSize=2048m"

修改相关启动参数如下:

JAVA_OPTS="${JAVA_OPTS} -Xms1024m -Xmx1024m -XX:PermSize=1024m -XX:MaxNewSize=1024m -XX:MaxPermSize=2048m"

左手Excel右手VBA此处内容已经被作者隐藏,请输入验证码查看内容
验证码:
请关注本站微信公众号,回复“验证码”,获取验证码。在微信里搜索“左手Excel右手VBA”或者“URItker”或者微信扫描右侧二维码都可以关注本站微信公众号。

image.png

评论

精彩评论
觉得有用就打赏吧
关注本站公众号,享受更多服务!
联系方式
QQ:########
地址:中国·辽宁
Email:2727987445#qq.com
Copyright ©2015-2023.Powered by 云水客 | 网站地图 | 辽ICP备14000512号-5