在部署rocketMQ之后运行mqnamesrv报异常

少不读水浒 发布于 2015/11/23 16:09
阅读 6K+
收藏 0

安装好rocketMQ,配置好环境变量之后,运行mqnamesrv查看日志发现有如下的异常,好像是因为无法分配内存,请了解的大神知道一下看看是什么错误?

环境:vmware ubuntu jdk8 1G内存

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=320m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c0000000, 2147483648, 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 2147483648 bytes for committing reserved memory.
# An error report file with more information is saved as:
加载中
0
北风刮的不认真了
萧沐垚
萧沐垚
回复 @少不读水浒 : 您好,我也遇到这个问题,但是我重新分配成4G内存,且重启虚拟机后,还是会有启动mqnamesrv失败的情况。期间有一次mqnamesrv启动成功,但是启动 broke,screen bash mqbroker -n localhost:9876 失败了。提示是找不到 某些日志文件 /root/rmq_bk_gc.log等等。最后查询好像也还是内存问题?
JoveQiao
JoveQiao
回复 @少不读水浒 : n你真是个傻叉
少不读水浒
少不读水浒
解决了
0
北风刮的不认真了
北风刮的不认真了
加内存了还是其他方法
0
b
bolean
内存加到4G,可以成功启动
0
c
czp11
   
   
   

 

返回顶部
顶部