Skip to content

Add system.jemalloc_stats and visualization of jemalloc stats#97077

Merged
antonio2368 merged 6 commits intomasterfrom
jemalloc-stats
Feb 19, 2026
Merged

Add system.jemalloc_stats and visualization of jemalloc stats#97077
antonio2368 merged 6 commits intomasterfrom
jemalloc-stats

Conversation

@antonio2368
Copy link
Copy Markdown
Member

@antonio2368 antonio2368 commented Feb 16, 2026

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Add system.jemalloc_stats table exposing jemalloc memory allocator statistics (via malloc_stats_print) for diagnosing memory usage on servers built with jemalloc. Also add a /jemalloc.html HTTP endpoint on the ClickHouse HTTP interface for interactive visualization of these statistics.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Feb 16, 2026

Workflow [PR], commit [70f0941]

Summary:

job_name test_name status info comment
Stress test (arm_asan) failure
Logical error: '(isConst() || isSparse() || isReplicated()) ? getDataType() == rhs.getDataType() : typeid(*this) == typeid(rhs)' (STID: 2508-3698) FAIL cidb
Stress test (arm_asan, s3) failure
Logical error: '(isConst() || isSparse() || isReplicated()) ? getDataType() == rhs.getDataType() : typeid(*this) == typeid(rhs)' (STID: 2508-3698) FAIL cidb

@clickhouse-gh clickhouse-gh bot added the pr-improvement Pull request with some product improvements label Feb 16, 2026
@nickitat
Copy link
Copy Markdown
Member

Do you have a demo?)

@antonio2368
Copy link
Copy Markdown
Member Author

@nickitat There will be demo once it reaches its final form 😄

Copy link
Copy Markdown
Member

@azat azat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice feature🚀

I did not look at web UI code, but tested it locally, few comments:

  • it will be nice to have ability to sort Bins/Large Allocations/Extents on the Allocations tab
  • Same for Arenas tab

@antonio2368
Copy link
Copy Markdown
Member Author

I did not look at web UI code

It is a Claude generated code, so maybe I should've said to just test it.
Let me merge this for now, and we can improve UI in next PR where I will add flamegraphs.

@antonio2368 antonio2368 added this pull request to the merge queue Feb 19, 2026
Merged via the queue into master with commit f2f904a Feb 19, 2026
144 of 147 checks passed
@antonio2368 antonio2368 deleted the jemalloc-stats branch February 19, 2026 14:42
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants