[Questions] SocketException happens sometimes and messages not consumed #12917
-
Community Support PolicyHello everyone, 1st problem: I have a cluster with three RabbitMQ nodes.
Followed by :
My logs in rabbit are :
After that, I have to run 2nd problem: Sometimes I have zero messages in my queues (0 ready, 0 unacked, 0 total), but the messages are not immediately consumed by my Spring service.
It feels like there’s a delay — my messages are only consumed 5 minutes later (my log.info appears 5min later) for example. Any ideas? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Please provide more information: client and broker versions and logs. A sample project and steps to reproduce the issue are useful as well. Make sure connection recovery is activated (Spring AMQP has its own recovery mechanism and deactivates the one from the RabbitMQ Java client library). |
Beta Was this translation helpful? Give feedback.
-
is clear evidence of a genuine TCP connection problem. This message is logged when RabbitMQ tries to send a serialized protocol frame on a connection and that operation fails (in this case, with a timeout). A traffic capture with Wireshark or This is expected from time to time in practice. This is why all messaging and streaming protocols RabbitMQ supports provide heartbeats (even if the feature is named differently), and why publisher confirms, connection recovery in client libraries exist. Our community support policy clearly states that we will not troubleshoot networking for users without a commercial support license. |
Beta Was this translation helpful? Give feedback.
is clear evidence of a genuine TCP connection problem. This message is logged when RabbitMQ tries to send a serialized protocol frame on a connection and that operation fails (in this case, with a timeout).
A traffic capture with Wireshark or
tcpdump
(that can be loaded into Wireshark for inspection on a different machine) would provide a lot of relevant information at the TCP level and below.This is expected from time to time in practice. This is why all messaging and streaming protocols RabbitMQ supports provide heartbeats (even if the feature is named differently), and why publisher confirms, connection …