-
Notifications
You must be signed in to change notification settings - Fork 24
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
Prossible perf_hooks memory leak detected #32
Comments
The quickest fix for this is to disable performance timings all together: https://github.com/choojs/nanotiming#disabling-timings. But need to dig a bit deeper into this to fix the root cause. |
I believe this is related: nodejs/node#19563 |
The patch above was landed to prevent this exact scenario from occurring. @Jokcy what version of Node are you using? Looks like >=10.0.0 should have this change. |
@yoshuawuyts Oh my node version is 9.11.1. so what I need to do is just upgrade my node or set DISABLE_NANOTIMING env ? |
@Jokcy yep, that sounds about right. I was hoping the new timing API would have been backported to |
Oh yeah, thought of another tweak we could do: we could detect the node version and switch off perf timings if the version is |
It seems nanobus creates a performance entry on event emit and never clear the entry, so after a long time of using, more and more entries of performance will be in memory.
key code here:
and warning message is:
and my test code is here:
I see this message when I use webpack-serve which use nanobus as bus to emit events.
So I guess it's a bug?
The text was updated successfully, but these errors were encountered: