colin719 opened a new issue, #8124: URL: https://github.com/apache/rocketmq/issues/8124
### Before Creating the Bug Report - [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). - [X] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate. - [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. ### Runtime platform environment OS: ubuntu lts 22.04 ### RocketMQ version branch 4.9.x / develop ### JDK Version jdk8 later ### Describe the Bug If a memory overflow error occurs when DeliverDelayedMessageTimerTask executes executeOnTimeUp, the task cannot continue to be registered for execution. As a result, delayed messages, retrieval messages, etc. will no longer be distributed. ### Steps to Reproduce Modify the jvm parameters, set a smaller direct-memory memory, and continuously send delay or retry messages. If the accumulation reaches a certain level, similar errors may occur. ### What Did You Expect to See? Print error log, but do not exit DeliverDelayedMessageTimerTask ### What Did You See Instead? DeliverDelayedMessageTimerTask exit forever ### Additional Context ![image](https://github.com/apache/rocketmq/assets/291159/6b5d0501-67e4-446b-8e50-0c65a62e75b4) ![image](https://github.com/apache/rocketmq/assets/291159/8f5e39e0-59d6-4436-8eae-ee774b0bdff9) ![image](https://github.com/apache/rocketmq/assets/291159/38fc4846-bd88-4353-ba34-4dc45ab2c6df) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org