Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用RabbitMQ,队列中仍有消息,但是没有对没有对消息进行消费 #44

Open
SimonFuu opened this issue Dec 12, 2019 · 2 comments

Comments

@SimonFuu
Copy link

在使用RabbitMQ作为消息队列的时候,队列中有大量的消息。相关进程在消费队列中的消息一段时间后,staticWorker与dynamicWorker进程都一直存在,但却不在继续消费消息,导致队列中的任务大量的积攒。请问这个是什么原因呢?

@lemon2015
Copy link

在使用RabbitMQ作为消息队列的时候,队列中有大量的消息。相关进程在消费队列中的消息一段时间后,staticWorker与dynamicWorker进程都一直存在,但却不在继续消费消息,导致队列中的任务大量的积攒。请问这个是什么原因呢?

有尝试过try catch 异常么? 有时候下游消费异常,无法处理的话,有可能导致这样,可以在消费入口处,接一下下游的异常,然后exit。

@kcloze
Copy link
Owner

kcloze commented Feb 23, 2020

重启是否有效?多半是因为业务代码有异常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants