Skip to content

Metricbeat postgresql connection leak under Windows #11393

@adriansr

Description

@adriansr

For confirmed bugs, please report:

# Run under Windows
$ metricbeat modules enable postgresql
$ vim modules.d/postgresql.yml
 > set period to 3s

This causes an inordinate amount of open connections to PostgreSQL server, all of them in the ESTABLISHED state. Windows becomes unusable / SQL server crashes due to OOM.

Under macOS, the metricbeat process peaks around 1200 open sockets, most of them in the CLOSE_WAIT state. Under Windows, those are shown as ESTABLISHED and don't seem to clean up after Metricbeat is killed (Sysinternals tcpview becomes sluggish).

Screenshot 2019-03-22 at 16 50 50

This bug may be related:
golang/go#6593

Tried SetMaxOpenConns / sharing a single DB object between filesets, but made no difference.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions