Skip to content

PubNub memory leak detected #169

@vzhurintulaco

Description

@vzhurintulaco

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.
image

Also, non-disposed timers can affect monitor tools (e.g. New Relic) -
image

My suggestion is:

  1. Add IDisposable interface to Pubnub class.
  2. Implement Dispose method to clear this.TelemetryManager.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions