[Bug]: Possible Memory leak?
Author: peterLam2Created Apr 27, 2025Updated Dec 22, 2025
LabelsNeeds InvestigationBug
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.
Source: winstonjs/winston