File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,21 @@ Using that code we may be sure that even if you kill a worker using
156156CTRL+C while it was processing a message, it will won't be lost. Soon
157157after the worker dies all unacknowledged messages will be redispatched.
158158
159+ > #### Forgotten acknowledgment
160+ >
161+ > It's a pretty common mistake to miss `basic_ack`. It's an easy error,
162+ > but the consequences are serious. Messages will be redelivered
163+ > when your client quits (which may look like random redelivery),
164+ > Rabbit will eat more and more memory as it won't be able to release
165+ > any unacked messages.
166+ >
167+ > In order to debug this kind of mistakes you may use `rabbitmqctl`
168+ > to print `messages_unacknowledged` field:
169+ >
170+ > $ sudo rabbitmqctl list_queues name messages_ready messages_unacknowledged
171+ > Listing queues ...
172+ > test 0 0
173+ > ...done.
159174
160175Message durability
161176------------------
                         You can’t perform that action at this time. 
           
                  
0 commit comments