Skip to content

2.x, 3.x: Feature for detecting leaked subscriptions #7142

@andreyfomenkov

Description

@andreyfomenkov

Hi guys,

I was facing a problem in the project with RxJava onboard: some subscriptions were not disposed due to a bug. It's quite hard to find this kind of bugs and such situation can cause memory leak.
So, I decided to write a tool that generates HTML report with detailed info about all not disposed subscriptions in application. The output report includes:

  • stack trace;
  • number of calls;
  • observable type.

Project on GitHub: RxDisposableWatcher, compatible with 2.x and 3.x
Post on Medium: Detect Leaked Subscriptions in RxJava code using RxDisposableWatcher

I found it very useful. How do you think guys, does it make sense to create PR and integrate this kind of feature into RxJava?
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions