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
The above code solved the leak on the server side, but the thing is I am worried the leak is happening on clients now.
Last 14 Days memory usage. cloud run instance
Last 1 Days memory usage. cloud run instance
You can observe from the above image that the memory usage is now constant at around 15% after I pushed the above code const posthog = (await import("posthog-js")).posthog;
Hi,
I have been using PostHog for a while and just discovered it is causing a serious memory leak.
I am using
[email protected]
.I solved the leak by lazily importing Posthog.
The above code solved the leak on the server side, but the thing is I am worried the leak is happening on clients now.
Last 14 Days memory usage.
cloud run instance
Last 1 Days memory usage.
cloud run instance
You can observe from the above image that the memory usage is now constant at around 15% after I pushed the above code
const posthog = (await import("posthog-js")).posthog;
How I was using PostHog before:
I tried this as well:
I don't know if the leak is because of the way I configured PostHog or because of the library itself.
I am using
[email protected]
Another concern is there are any plans about decreasing the size of the lib?
#65
The text was updated successfully, but these errors were encountered: