Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to clear rocketmq messages

Shulou Source: shulou.com Published: 2022-06-01 14:45:22 11月16日 Update

This article mainly explains "how to clear rocketmq messages". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and go deep into it slowly to study and learn "how to clear rocketmq messages" together.

1. Stop rocketmq: kill -9 just kill it all

2. Delete logs/rocketmqlogs : a large number of logs under/root

3. Delete/root/store : topic and other information in MQ that seems to be accumulated

4. [optional] Clear topics displayed in MQ

sh mqadmin topicList -n 192.168.1.4:9876

sh mqadmin deleteTopic -c HOSTNAME -n 192.168.1.4:9876 -t orderTopic

*. Then restart rocketmq and try step four to see if it's clean

p.s.

1. It is critical to stop rocketmq and clear the order first; if it is not clear, rocketmq does not know where to reload all accumulated, resulting in failure to start rocketmq.

2. deleteTopic is not required, but when deleting it, you generally need to specify-c, you can try using hostname

Thank you for reading, the above is the content of "how to clear rocketmq message," after the study of this article, I believe everyone has a deeper understanding of how to clear rocketmq message, the specific use situation still needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Tags: News learning content clean clear information key that is ideas situations articles logs time more knowledge knowledge points articles follow or questions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Docker MariaDB vpn Xiaomi