forked from ArweaveTeam/arweave
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manually trigger the garbage collector periodically.
Several of the processes involved in mining "touch" chunks. The way Erlang's memory managment works each time a process touches a chunk it gets a reference to the full 100MiB recall range. Also the default garbage collection frequency is based on the amount of activity a given process does. So for some processes the default GC may happen infrequently. This can lead to the 100MiB recall ranges staying in memory long enough to trigger memory issues. By manually GC'ing periodically we ensure memory is released regularly.
- Loading branch information
1 parent
40d4682
commit 2b0bb57
Showing
8 changed files
with
228 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.