Debugging memory leaks in Postgres, jemalloc edition
Read OriginalThis article provides a detailed tutorial on debugging memory leaks in PostgreSQL using jemalloc, an alternative malloc implementation from Meta. It walks through building Postgres and jemalloc with profiling enabled, introducing a controlled memory leak, and using jemalloc's tools to identify the leak. The techniques are applicable to memory leak debugging in C, C++, and Rust projects in general.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
No top articles yet