RocketMq4.2.0 problem summary

Follow the official documentation step by step, and the first step is 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

The poor English probably means that the memory is not enough. Baidu said for a long time that the number of threads is not enough. I tried it to no avail. After thinking about it for a long time, I started to find the problem from the startup file and configuration file and found it.

My virtual machine is obviously not enough, so I set it lower Xms256m Xmx256m -Xmn128m

Mainly modify two configuration files bin/runserver.sh and bin/runbroker.sh

Later, I also found a simple deployment blog with the same configuration

Link address: https://www.cnblogs.com/dingkailinux/p/8874726.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325026143&siteId=291194637