Skip to content

RFC: system.jemalloc_heap_profiler table #93248

@azat

Description

@azat

After #93099 you still need to have a jeprof script to generate the flamegraph of memory usage

What we can do is to write a parser of jemalloc heap report, and on select from system.jemalloc_heap_profile send request jemalloc to flush this profile, parse it, and provide to user as a table

That way we can eliminate the jeprof dependency (not completely, since some advanced reports, i.e. pdf or similar, that can be useful for some cases, but majority of cases will be covered)

Also we can provide a custom HTTP handler, that will generate render beautiful flamegraphs in SVG format

The most time slowest part right now is to symbolize stacktraces with inlines (w/o it works very fast, i.e 0.03 vs 10 sec), but cache can help here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    introspectionmemoryWhen memory usage is higher than expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions