RocketMq4.2.0 问题汇总

本文记录了在安装配置RocketMQ过程中遇到的内存不足错误,并详细介绍了如何通过调整虚拟机内存分配来解决问题的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

按照官方文档一步一步照着玩,结果第一步就gameover了!

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: 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:
# /allen/rocketmq-4.2.0/bin/hs_err_pid1060.log

英文不咋的大概是内存不够的意思吧,百度了半天说全是说线程数不够什么的。我试了试并没有什么卵用。想了半天还是从启动文件和配置文件入手找问题结果找到了

150942_6goR_253147.png

我虚拟机明显不够,我就把他设低一点  Xms256m Xmx256m -Xmn128m

主要修改两个配置文件  bin/runserver.sh 和 bin/runbroker.sh

后来也找个了简单部署的博客 也有相同配置

链接地址:https://www.cnblogs.com/dingkailinux/p/8874726.html

转载于:https://my.oschina.net/unteacher/blog/1802233

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值