-
-
Notifications
You must be signed in to change notification settings - Fork 133
Massive memory leak when auto breadcrumbs is enabled #295
Comments
Thanks for the report, sounds serious. Will investigate and see if I can pinpoint a cause. |
Okay, a few questions @maxcountryman, could be helpful for complete information/guidance to repro attempts:
I'm definitely not going to ask you to put autoBreadcrumbs back into your production environment, and don't mean to ask you to help me chase this issue, but one thing that would be really helpful is knowing whether 1.1.2 causes the same issue. If you have any way to safely/easily determine if this happens on 1.1.2, I would hugely appreciate it (though I completely understand if it's not viable to test). I have three potential avenues to investigate at the moment, will be updating this thread with any findings. |
@maheshoml following up on your comment in #295, with this additional context on a memory leak being autobreadcrumb-related, I'm wondering if you have autoBreadcrumbs enabled and if so, do you still see the memory issue you mentioned if you disable autoBreadcrumbs? |
I've done some investigating and it appears to be an issue with http breadcrumbs present in 1.1.4 but not present in 1.1.2, which means #276 likely introduced the problem. I'm working on a fix. |
@LewisJEllis I still cannot zero in on what in Raven might be causing this. But we do have auto breadcrumbs for http enabled. For most part of yesterday we had raven enabled and 50+ instances were taken out of ELB for health check failures on account of memory leaks and 12+ hours since we disabled raven 0 such instances. So it is definitely Raven. Let me see if I can run with http disabled later in the day. |
@maheshoml thanks for the conf on that behavior, sounds consistent. I tracked the issue down today and made the fix in #296; it'll merge and go out in a new version tomorrow. |
I have the same issue with massive memory leaks. This was essentially taking down our servers. To fix, I reverted to an old version of Raven but did not try disabling auto breadcrumbs. I'll re-upgrade and disable auto breadcrumbs, since that's probably fine. I can also test the new fix once it's released |
@LewisJEllis thanks for fixing this 🎉 I was going crazy trying to figure out the cause of the memory leak in our production environment, then luckily I bumped into this issue! |
Unfortunately I will not be able to dig into this for you, but it should be reported so that others who can have a starting point and realize they are not alone.
I had to disable auto breadcrumbs due to the fact it was consistently consuming gigs of memory and crashing my Node process within minutes of running in production. (Roughly every twenty minutes or so it would exhaust available memory and restart the process.)
Disabling auto breadcrumbs fixed the issue.
This is on Node v7.4.0 and raven-node 1.1.4. Happens on macOS as well as whatever Docker node:7.4 is running.
Best of luck fixing this...it's a nasty one.
The text was updated successfully, but these errors were encountered: