Interview practice question
Python service memory grows without a leak
Backend Engineering · Language Runtimes · Experienced
Your multi-threaded Python service's memory grows steadily, but tracemalloc shows no growth in Python objects. What could cause this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Native fragmentation (glibc arenas).
- C extension leaks.
- Try jemalloc or MALLOC_ARENA_MAX=2.
- Compare RSS vs Python allocations.
- Recycle workers as mitigation.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.