Skip to content

Add ability to sample the heapsnapshot #51381

@NHDaly

Description

@NHDaly

We've seen two problematic scenarios with the heapsnapshots:

  1. We OOM while collecting the snapshot! 🤦
    • A short poem, to represent this case: the memory usage was high, we wondered "why," we asked for a snapshot from the cloud (in the sky), and so we saw our server die. 😢
  2. We successfully downloaded the snapshot (which was 7GiB big! 😳), and then the Chrome devtools errors trying to open it.
    • It complains that we've exceeded the max size of a JS string 😑

SO we'd like the ability to sample a heapsnapshot, taking only some edges and/or only some nodes, possibly weighting the sampling by the number of bytes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIndicates new feature / enhancement requestsobservabilitymetrics, timing, understandability, reflection, logging, ...tooling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions