zzh

zzh

RocketMq exception: service not available now. It may be caused by one of the following reasons: the broker's disk is full [CL: 0.31 CQ: 0.31 INDEX: 0.31], messages are put to the slave, message store has been shut down, etc.

This exception occurs mainly due to insufficient disk space for message storage. In this case, the following two operations can be performed:

  • Modify the disk space warning ratio
    Add set "JAVA_OPT=%JAVA_OPT% -server -Xms512m -Xmx512m -Xmn128m -Drocketmq.broker.diskSpaceWarningLevelRatio=0.99" to the runbroker.cmd file to trigger an error only when disk usage exceeds 99%. The fundamental solution is to ensure that disk space never exceeds 90%.

  • Change the message storage address to a disk with more remaining space
    Add set "JAVA_OPT=%JAVA_OPT% -Duser.home=D:/mqs/rocket-mq" to the runbroker.cmd file.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.