Skip to content

Stuck Active Connections #1401

Description

@pavelkuchin

We are having an issues with stuck active connections. At some arbitrary moments number of active connections starts growing till exhaustion of connection pool. Usually it happens few times a day and gets back to normal after service restart. We can't reproduce the issue with integration or load tests and can't correlate it with load. Once number of active connections is growing CPU consumption spikes to 100% and most active threads are reactor-http-epoll. It started at night from November 20 to 21 and since than happens at least few times a day. Last deployment was on Wednesday and we did't have any infrastructure changes on the night on our side. The service is on AWS ECS.

Expected Behavior

Number of active connection should not grow till pool exhaustion.

Actual Behavior

Connections pool gets exhausted by growing number of active connections.

Steps to Reproduce

Reproducible only on production environment at arbitrary moments.

Possible Solution

The only solution we found is to restart the service on regular basis.

Your Environment

  • Reactor version(s) used: Dysprosium-SR14

  • Reactor Netty: 0.9.14

  • JVM version (java -version):
    openjdk 11.0.9 2020-10-20
    OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9+11)
    OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9+11, mixed mode)

  • OS and version (eg. uname -a): Linux 1e0330d34cf6 4.14.200-155.322.amzn2.x86_64 MonoHttpClientChannel subscribes to Mono with a null subscriber #1 SMP Thu Oct 15 20:11:12 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/invalidWe don't feel this issue is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions