Skip to content

Tutorial six: consumers are accumulated between recoveries #296

Closed
@Crabzmatic

Description

@Crabzmatic

The field _recordedConsumers in AutorecoveryConnection keeps getting more populated. After couple of thousands messages there is a large amount of accumulated consumers. With large amount of messages this can grow to a noticable number (hundreds of MB).

Edit: https://www.rabbitmq.com/tutorials/tutorial-six-dotnet.html this tutorial is also a reproducer. Sending lots of requests like this:

while (true)
{
    Console.WriteLine(" [x] Requesting fib(30)");
    var response = rpcClient.Call("30");
    Console.WriteLine(" [.] Got '{0}'", response);

    await Task.Delay(20);
}

accumulates 10 000 RecordedConsumers in under 10 minutes. These RecordedConsumers appear to linger there forever for long running connections. This can cause problems for connections that run for a long time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions