Skip to content

Memory leak with Fluentd 1.19.2 due to cool.io >= 1.9.2 #5285

@2ZZ

Description

@2ZZ

Describe the bug

Fluentd 1.19.2 comes bundled with cool.io 1.9.3, which introduced a memory leak affecting in_forward under connection churn (clients connecting without keepalive).

Worker RSS grows linearly (~20MB/min at ~10 conn/sec) until OOM.

Downgrading to cool.io 1.9.1 fixes it. Upstream issue: socketry/cool.io#89

To Reproduce

in_forward + @type null output, send traffic without keepalive. Ruby 3.4, jemalloc, Linux.

Expected behavior

No memory leak.

Your Environment

Fluentd version: 1.19.2
Package version: gem
Operating system: Debian GNU/Linux 13 (trixie)
Kernel version: 6.12.68

Your Configuration

<source>
  @type forward
  port 24224
</source>

<match **>
  @type null
</match>

Your Error Log

N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions