The main cause of this exception is insufficient disk space for message storage. In this case, you can perform the following two operations:
-
Modify the disk space warning ratio
Addset "JAVA_OPT=%JAVA_OPT% -server -Xms512m -Xmx512m -Xmn128m -Drocketmq.broker.diskSpaceWarningLevelRatio=0.99"
to therunbroker.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 storage location of messages to a disk with more available space
Addset "JAVA_OPT=%JAVA_OPT% -Duser.home=D:/mqs/rocket-mq"
to therunbroker.cmd
file.