Force more frequent full_sweep GC runs on the Websocket processes
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))
Edited by feld