Profiling Memory Usage with Heaptrack
Heaptrack is a memory profiler used to track allocation patterns, locate memory leaks, and analyze consumption spikes in MariaDB ColumnStore subprocesses, specifically PrimProc. The outputs help generate performance flame graphs for deep-dive engineering diagnostics.
Installation
Clone the directory:
git clone https://github.com/KDE/heaptrack.gitInstall the development tools group:
dnf group install "Development Tools" -yCreate the build folder layout:
cd heaptrack mkdir build cd buildInstall prerequisite library dependencies:
yum install cmake libunwind libunwind-devel boost boost-devel -yConfigure the build files for a Release target:
cmake -DCMAKE_BUILD_TYPE=Release .. # look for messages about missing dependencies!Compile the tracking application:
make -j$(nproc)Verify the compiled tracking binary target path:
ls -la /home/rocky/heaptrack/build/bin/heaptrack
Running a Memory Profile
Stop the active process service:
Relaunch the process in the foreground under Heaptrack:
Capturing and Sharing Results
Check system logs for process behaviors:
Stop the process service wrapper instance:
Halt the tracing session: Press
Ctrl+Cin the active heaptrack window.Share the compressed data profile with engineering: Locate and transfer the resulting archive artifact:
Historical Engineering References
The following benchmarking and signal commands are preserved from internal engineering logs as testing options and should be adapted carefully based on your specific verification context:
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

