You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a new issue since #1762 was closed.
There exists a small memory leak in @sentry/node. Calling setTag with some long strings makes it a lot larger.
This is identifiable because it's not only a memory leak, but according to my DO droplet metrics, it causes a permanent increase in CPU usage & Bandwidth public that can only be fixed by restarting the server.
Pic shows what happens when I added setTag (July 11) and when I removed it (Aug 9).
The text was updated successfully, but these errors were encountered:
Are you able to provide some repro-case for this? setTag with multiple concurrent requests will for sure increase a memory footprint, but once a scope is GC'd, memory should drop to the baseline.
from the looks of it, the scope isn't getting GC'd.
it may be unpopular, but all i really want is a clean API call that takes an exception & variables. e.g. Sentry.captureExpection(error, {tags: {foo: 1}}). that would get rid of the scopes & associated memory leaks.
withScope at the end of it's lifecycle performs a popScope operation which get rid of the layer from the internal array, thus there's no strong reference to it - GC takes care of it automatically.
fwfw you can change your call to:
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
Creating a new issue since #1762 was closed.
There exists a small memory leak in @sentry/node. Calling
setTag
with some long strings makes it a lot larger.This is identifiable because it's not only a memory leak, but according to my DO droplet metrics, it causes a permanent increase in CPU usage & Bandwidth public that can only be fixed by restarting the server.
Pic shows what happens when I added
setTag
(July 11) and when I removed it (Aug 9).The text was updated successfully, but these errors were encountered: