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 cause of memory leak is public class TelemetryManager : IDisposable.
This class is created by public class Pubnub is case of config.EnableTelemetry == true but will never be disposed.
It can lead to significantly increasing of Number of Active Timers and ultimately lead to memory leak.
Also, non-disposed timers can affect monitor tools (e.g. New Relic) -
My suggestion is:
Add IDisposable interface to Pubnub class.
Implement Dispose method to clear this.TelemetryManager.
The text was updated successfully, but these errors were encountered:
The cause of memory leak is
public class TelemetryManager : IDisposable
.This class is created by
public class Pubnub
is case ofconfig.EnableTelemetry == true
but will never be disposed.It can lead to significantly increasing of
Number of Active Timers
and ultimately lead to memory leak.Also, non-disposed timers can affect monitor tools (e.g. New Relic) -
My suggestion is:
IDisposable
interface toPubnub
class.Dispose
method to clear this.TelemetryManager.The text was updated successfully, but these errors were encountered: