按照官方文档一步一步照着玩,结果第一步就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 releaseJava 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
英文不咋的大概是内存不够的意思吧,百度了半天说全是说线程数不够什么的。我试了试并没有什么卵用。想了半天还是从启动文件和配置文件入手找问题结果找到了
我虚拟机明显不够,我就把他设低一点 Xms256m Xmx256m -Xmn128m
主要修改两个配置文件 bin/runserver.sh 和 bin/runbroker.sh
后来也找个了简单部署的博客 也有相同配置
链接地址: