-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: automatically set up GOMEMLIMIT
Automatically set up GOMEMLIMIT to 90% of the cgroup allowed memory. If running in an environment where there's no cgroup limit set up, fallback to 90% of the system's memory. Note that this doesn't mean that the program will use 90% of the system's memory, but that if it does get to that point, the garbaga collector will try to be more aggresive. It is strongly recommended to set a limit via cgroups. Signed-off-by: Marcelo E. Magallon <[email protected]>
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 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