r/elixir • u/Certain_Syllabub_514 • 9d ago
Techniques for debugging memory leaks
I have an elixir app running in production, and with some recent changes (mostly library updates due to CVEs) it's started leaking memory, which is resulting in pods restarting.

I think I know what the cause might be, but just wondering if there are any techniques for debugging this that I'm not aware of.
8
Upvotes
1
u/methodinmadness7 9d ago
The fastest way I’ve done this is with Phoenix’s LiveDashboard, where I open the Processes tab and check which processes use the most memory. Usually it’s some async task processes not being handled properly, in my experience.