---
title: "Comment by Arpan Ghoshal on \"Using Phoenix Channels? High Memory Usage? Save Money With ERL_FULLSWEEP_AFTER - Phoenix Series\" | Hashnode"
description: "Nice article, one more idea to try is to periodically run erlang:garbage_collect() on the Phoenix channel process."
url: "https://hashnode.com/posts/using-phoenix-channels-high-memory-usage-save-money-with-erlfullsweepafter/6557c659cf0968334f1a30ea/comment/6569adfe44cdf745ef5b1909"
---

[Discussion](https://hashnode.com/posts/using-phoenix-channels-high-memory-usage-save-money-with-erlfullsweepafter/6557c659cf0968334f1a30ea)

Comment [Using Phoenix Channels? High Memory Usage? Save Money With ERL\_FULLSWEEP\_AFTER - Phoenix Series](https://hashnode.com/posts/using-phoenix-channels-high-memory-usage-save-money-with-erlfullsweepafter/6557c659cf0968334f1a30ea)

[Arpan Ghoshal](https://hashnode.com/@ArpRokz)

[Dec 1, 2023](https://hashnode.com/posts/using-phoenix-channels-high-memory-usage-save-money-with-erlfullsweepafter/6557c659cf0968334f1a30ea/comment/6569adfe44cdf745ef5b1909)

Nice article, one more idea to try is to periodically run `erlang:garbage_collect()` on the Phoenix channel process.

[Erik Guzman](https://hashnode.com/@Talk2meGooseman)

[Dec 2, 2023](https://hashnode.com/posts/using-phoenix-channels-high-memory-usage-save-money-with-erlfullsweepafter/6557c659cf0968334f1a30ea/comment/6569adfe44cdf745ef5b1909#reply-656b602003318819fa36ba54)

Yeah! I read about this also. The book covered `​:erlang​.garbage_collect(pid)` and `GenServer.call(pid, ​:clear_hibernate​)` for your own GenServers
