Skip to content

Memory leak with long-running processes #2002

@rkojedzinszky

Description

@rkojedzinszky

Paramiko stores thread-ids in a dictionary, which never gets cleaned up. In a long-running process, this leaks memory. One example is https://github.com/truenas/zettarepl which runs persistently in a TrueNAS system, and thus leaks memory.

The leaking structure is here: https://github.com/paramiko/paramiko/blob/main/paramiko/util.py#L228

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