See https://stackoverflow.com/questions/71482356/memory-leak-outgoing-messages-rabbitmq/71578881#71578881 If the `RabbitTemplate` is configured with a confirm listener, ensure that the connection factory is configured for confirms.