From the source
Replit engineers identified and investigated a memory leak in the Replit Agent processes, which were running out of memory roughly once an hour.
- They used the memray profiler and Python's gc module to inspect heap allocations and find the cause of the leak.






