JDRaftKeeper / RaftKeeper

RaftKeeper is a high-performance distributed consensus service.
Apache License 2.0
141 stars 37 forks source link

Add ability to enable, disable, dump jemalloc profiling and flush unused memory #341

Closed JackyWoo closed 1 month ago

JackyWoo commented 2 months ago

Describe your ideas

Add ability to flush jemalloc unused arenas and dump jemaloc profile.

Solution

Achive it by 4lw commands:

  1. jmep: enable profiling
  2. jmfp: dump profiling info
  3. jmdp disable profiling
  4. jmst: dump statistics
  5. jmpg: purge unused memory
JackyWoo commented 2 months ago

The idea is from https://github.com/ClickHouse/ClickHouse/pull/58665