Description
Problem Statement
Once you start building your APM integration for Elixir, it'd be great if you could add something like hog which my friend @akoutmos has written. It scans periodically for memory-hungry processes that consume memory above a certain threshold. These are usually memory leaks that might crash the server (as they've done in our case, hence the hog
library). The problem with these memory leaks is that they are hard to spot and no good error message is sent when they take down the server because it runs OOM (out-of-memory). The only way to catch them is to periodically check all running processes and how much memory they use and to report processes that go rogue.
Solution Brainstorm
Look at how hog implements the memory scanning and report e.g. a Sentry error if a process surpasses the memory threshold.
Metadata
Metadata
Assignees
Type
Projects
Status