RocketMQ启动报错解决:Using the DefNew young collector with the CMS collector is deprecated and will likely

启动nameserver报错了,如下

[root@localhost ~]# mqnamesrv
Java HotSpot(TM) 64-Bit Server VM warning: Using the DefNew young collector with the CMS collector is deprecated and will likely be removed in a future release
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: MaxNewSize (1048576k) is equal to or greater than the entire heap (1048576k).  A new max generation size of 1048512k will be used.
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073676288, 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 1073676288 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /root/hs_err_pid1074.log
[root@localhost ~]# 

RocketMQ启动报错解决:Using the DefNew young collector with the CMS collector is deprecated and will likely_第1张图片

原因是rocketmq默认启动内存是4G,我们电脑虚拟机一般内存有限,没有这么大内存,所以得修改这个值,把值修改小一点,得修改两个配置文件: runbroker.sh 和runserver.sh

RocketMQ启动报错解决:Using the DefNew young collector with the CMS collector is deprecated and will likely_第2张图片

 RocketMQ启动报错解决:Using the DefNew young collector with the CMS collector is deprecated and will likely_第3张图片

你可能感兴趣的:(rocketmq,java,java,开发语言)