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
Addset "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
Addset "JAVA_OPT=%JAVA_OPT% -Duser.home=D:/mqs/rocket-mq"
to the runbroker.cmd file.