RocketMQ配置启动
#修改JVM默认配置(物理机器内存为8G)
[root@localhost rocketmq-4.9.3]# vi bin/runserver.sh
JAVA_OPT="${JAVA_OPT} -server -Xms2g -Xmx2g -Xmn1g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m"
JAVA_OPT="${JAVA_OPT} -server -Xms2g -Xmx2g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m"
[root@localhost rocketmq-4.9.3]# vi bin/runbroker.sh
JAVA_OPT="${JAVA_OPT} -server -Xms2g -Xmx2g"
JAVA_OPT="${JAVA_OPT} -XX:MaxDirectMemorySize=4g"
# 启动mqnamesrv
nohup sh bin/mqnamesrv > mqnamesrv.log 2>&1 &
# 启动mqbroker
nohup sh bin/mqbroker -n 127.0.0.1:9876 autoCreateTopicEnable=true -c conf/broker.conf > broker.log 2>&1 &