Remember that when RocketMq starts mqbroker, it fails to start

Remember that when RocketMq starts mqbroker, it fails to start

Prerequisites

I installed version 4.7.1, the previous installation process is the same as that on the Internet, in fact, it can be easily installed successfully according to the installation method on the official website .

I see that the final startup directory on the Internet is mostly the following path.
distribution/target/apache-rocketmq
In fact, the new version of the official website enters the following path
distribution/target/rocketmq-4.7.1/rocketmq-4.7.1

The above is not my problem.

my question

I can execute successfully nohup sh bin/mqnamesrv &when nohup sh bin/mqbroker -n localhost:9876 &, but I always can’t get up and report no error when executing . I searched a lot on Baidu and couldn’t find the reason. Finally, I saw someone saying that the memory is full, and then I specifically confirmed it, and found that Memory is normal.

Solution

After reading what a lot of friends said on the Internet, it was finally determined that it was a memory problem of the virtual machine. I vim bin/runbroker.sh
opened JAVA_OPTfound that the maximum and minimum memory were set to 8G. My own machine memory does not have 8G, so I changed the memory. After a while,
Modified configuration
it will start again.

conclusion

This is the first time I have come into contact with rocketMq, and I have no brains to operate according to the official website documents. I feel that there are still many problems, and I need to think about it a little bit. This is also the first time I have made such notes. It is time to regulate myself.

Guess you like

Origin blog.csdn.net/qq_21347647/article/details/108471238