Skip to content

[Bug]: Possible Memory leak? #2548

@peterLam2

Description

@peterLam2

🔎 Search Terms

Memory Leak, memory, performance, OOM

The problem

is 3.x.x Possible Memory leak?

What version of Winston presents the issue?

3.17.0

What version of Node are you using?

v20.19.0

If this worked in a previous version of Winston, which was it?

v2.4.7

Minimum Working Example

run script with node --max-old-space-size=200 
    logger = winston.createLogger(
      {
        transports: [
          new winston.transports.Console()
        ]
      }
    );

      for (let i = 0; i < 100000; i ++){
          logger.info('testing');
      }

Additional information

tested in winston 3.1.0, the situation is the same. and downgrade to v2.4.7 it work fine.

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions