RocketMQ启动报错failed to map 8589934592 bytes for committing reserved memory. An error report file with

最近在对RocketMQ集群加入broker的时候,启动RocketMQ报错

[1] 1662
[root@localhost rocketmq]# Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000005c0000000, 8589934592, 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 8589934592 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/local/software/rocketmq/hs_err_pid1669.log

意思就是本地的内存比所配置的内存少,导致内存无法分配而报错

修改配置的内存即可

调整Name Server的内存 (默认是  JAVA_OPT="${JAVA_OPT} -server -Xms4g -Xmx4g -Xmn2g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m")
    
    修改runserver.sh

    JAVA_OPT="${JAVA_OPT} -server -Xms2g -Xmxg -Xmn1g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m"

调整broker的内存(默认是  JAVA_OPT="${JAVA_OPT} -server -Xms8g -Xmx8g -Xmn4g")

    修改runbroker.sh

    JAVA_OPT="${JAVA_OPT} -server -Xms2g -Xmx2g -Xmn1g"

[omm@lm2hdp03 bin]$ ./start-cluster.sh Starting cluster. [ERROR] The execution result is empty. [ERROR] Could not get JVM parameters and dynamic configurations properly. [ERROR] Raw output from BashJavaUtils: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080200000, 1404043264, 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 1404043264 bytes for committing reserved memory. # An error report file with more information is saved as: # /opt/gcytest/flink-1.17.1/bin/hs_err_pid30333.log Warning: Permanently added 'lm2hdp01,10.100.40.200' (ECDSA) to the list of known hosts. [INFO] 1 instance(s) of taskexecutor are already running on lm2hdp01. Starting taskexecutor daemon on host lm2hdp01. Warning: Permanently added 'lm2hdp02,10.100.40.202' (ECDSA) to the list of known hosts. [INFO] 1 instance(s) of taskexecutor are already running on lm2hdp02. Starting taskexecutor daemon on host lm2hdp02. Warning: Permanently added 'lm2hdp03,10.100.40.209' (ECDSA) to the list of known hosts. [ERROR] Could not get JVM parameters and dynamic configurations properly. [ERROR] Raw output from BashJavaUtils: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080200000, 1404043264, 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 1404043264 bytes for committing reserved memory. # An error report file with more information is saved as: # /home/omm/hs_err_pid32379.log
06-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值