-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: possibile memory leak leads to node process exit in express.js web app #2237
Comments
As additional information, the problem was a big stopper for us so we moved to another logging library (pino) and the memory problem disappeared. |
I'm sadly experiencing same issue. For me it exits the node process if I try to log an instance of AxiosError. |
Facing same issue too. I move to pino and problem is solved. |
Same issue, memory is leaking. Any plans to fix this? |
In my case memory was leaking due to improper creation of logger instances. I created a shared logger options object and used it to instantiate multiple loggers in my code:
Specifically, it seems like
|
Possibly related: BridgeAR/safe-stable-stringify#41 (which also cites a solution of using a maximumDepth option to safe-stable-stringify). |
🔎 Search Terms
winston memory leak
The problem
After replacing console.log with winston 3.8.2 we are experiencing a sudden exit of the node process with this error:
This is the JS stacktrace:
This is the winston configuration:
What version of Winston presents the issue?
v3.8.2
What version of Node are you using?
v14.20.1
If this worked in a previous version of Winston, which was it?
No response
Minimum Working Example
This is the app.ts
Additional information
No response
The text was updated successfully, but these errors were encountered: