You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@rocketmq.apache.org by 曾雪薇 <17...@163.com> on 2023/03/20 05:50:36 UTC
ShutdownHookMQTrace causes the process to fail to exit quickly when the consumer shutdown
I'm using the client version 4.9.3, and I've added message trace for both producer and consumer
I added shutdownhook to the project to complete the graceful exit of the project, which includes producer and consumer stops. However, the process cannot exit quickly during execution. The maximum duration is one minute. The stack information shows that the thread is blocked for a long time, causing the process to exit after about a minute.
How can I quickly shut down the MQ client
Re:Re: ShutdownHookMQTrace causes the process to fail to exit quickly when the consumer shutdown
Posted by 曾雪薇 <17...@163.com>.
According to the stack information, it is assumed that the long-running thread blocked where the size of ArrayBlockingQueue was gotten in the flush() method when traceDispatcher shutdown. Here's the partial stack information I got.
At 2023-03-20 14:46:23, "SSpirits" <ad...@lv5.moe> wrote:
Hi 曾雪薇,
Could you please provide a flame graph or more information about the shutdown process? I didn't see any connection between this issue and the message trace based on your description.
Your response would be highly appreciated.
SSpirits
Email:admin@lv5.moe
On 20 Mar 2023 at 1:51 PM +0800, 曾雪薇 <17...@163.com>, wrote:
I'm using the client version 4.9.3, and I've added message trace for both producer and consumer
I added shutdownhook to the project to complete the graceful exit of the project, which includes producer and consumer stops. However, the process cannot exit quickly during execution. The maximum duration is one minute. The stack information shows that the thread is blocked for a long time, causing the process to exit after about a minute.
How can I quickly shut down the MQ client
Re: ShutdownHookMQTrace causes the process to fail to exit quickly when the consumer shutdown
Posted by SSpirits <ad...@lv5.moe>.
Hi 曾雪薇,
Could you please provide a flame graph or more information about the shutdown process? I didn't see any connection between this issue and the message trace based on your description.
Your response would be highly appreciated.
SSpirits
Email:admin@lv5.moe<ma...@lv5.moe>
On 20 Mar 2023 at 1:51 PM +0800, 曾雪薇 <17...@163.com>, wrote:
I'm using the client version 4.9.3, and I've added message trace for both producer and consumer
I added shutdownhook to the project to complete the graceful exit of the project, which includes producer and consumer stops. However, the process cannot exit quickly during execution. The maximum duration is one minute. The stack information shows that the thread is blocked for a long time, causing the process to exit after about a minute.
How can I quickly shut down the MQ client