Interview practice question
Python worker memory keeps growing
Backend Engineering · Language Runtimes · Intermediate
Your Python background worker's memory grows from 200 MB to 4 GB over a day. How do you investigate?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- tracemalloc snapshots comparison.
- Check global caches, lists, lru_cache unbounded.
- Reference cycles with __del__, C extension leaks.
- Fragmentation vs real leak.
- Workaround: recycle workers (max tasks per child).
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.