From Python3.8 to Python3.10: Our Journey Through a Memory Leak

234 · Lyft · Dec. 15, 2025, 8:01 p.m.
Summary
This blog post details a real-world experience with a memory leak encountered during the process of upgrading Python services from version 3.8 to 3.10 at Lyft. It discusses the discovery of the leak, the profiling tools and techniques used, and the impact of changes in dependency, specifically with urllib3 and its relationship with gevent. The author emphasizes the complexity of debugging memory leaks and shares insights on effective practices while managing database connections.