Force more frequent full_sweep GC runs on the Websocket processes
- Feb 17, 2024
-
-
feld authored
Websocket processes seem to be the primary culprit for Binary memory allocation bloat.
7e99d061
-
Tip to find the top 10 Binary-bloated processes:
:recon.proc_count(:binary_memory, 10)
Kill them and observe your memory usage drop:
:recon.proc_count(:binary_memory, 10)
|> Enum.map(fn {pid, _, _} -> pid end)
|> Enum.each(&Process.exit(&1, :kill))
Websocket processes seem to be the primary culprit for Binary memory allocation bloat.