Skip to content

Conversation

edgurgel
Copy link
Member

These two processes receive tons of messages, process them and discard them.

From the Erlang docs:

A few cases when it can be useful to change fullsweep_after:

* If binaries that are no longer used are to be thrown away as soon as possible. (Set Number to zero.)
* A process that mostly have short-lived data is fullsweeped seldom or never, that is, the old heap contains mostly garbage. To ensure a fullsweep occasionally, set Number to a suitable value, such as 10 or 20.
* In embedded systems with a limited amount of RAM and no virtual memory, you might want to preserve memory by setting Number to zero. (The value can be set globally, see erlang:system_flag/2.)

These two processes receive tons of messages, process them and discard
them.

From the Erlang docs:

A few cases when it can be useful to change fullsweep_after:

    * If binaries that are no longer used are to be thrown away as soon as possible. (Set Number to zero.)
    * A process that mostly have short-lived data is fullsweeped seldom or never, that is, the old heap contains mostly garbage. To ensure a fullsweep occasionally, set Number to a suitable value, such as 10 or 20.
    * In embedded systems with a limited amount of RAM and no virtual memory, you might want to preserve memory by setting Number to zero. (The value can be set globally, see erlang:system_flag/2.)
@edgurgel edgurgel merged commit 5382a0f into master Oct 17, 2025
4 checks passed
@edgurgel edgurgel deleted the fix/set-fullsweep-after branch October 17, 2025 07:19
edgurgel added a commit to supabase/realtime that referenced this pull request Oct 17, 2025
edgurgel added a commit to supabase/realtime that referenced this pull request Oct 20, 2025
edgurgel added a commit to supabase/realtime that referenced this pull request Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants