Shopify
Shopify logoShopify · Feature trail

Memory Leak Detection and Debugging

1 post · Oct 2011

What this trail covers

This feature thread tracks the development and enhancement of strategies and tools for detecting and debugging memory leaks in production systems. Initial efforts focused on understanding the nature of memory leaks, differentiating between 'good' (intentional global allocations) and 'bad' (unintentional, growing allocations) leaks. The thread details the challenges of reproducing leaks, the limitations of general-purpose tools, and the exploration of language-specific profilers like memprof. This post details a specific incident where a memory leak in a C extension of a memcached client library caused production crashes, and how the team eventually reproduced and resolved the issue through a combination of debugging, teamwork, and tool usage.

All Shopify trails