Bump github.com/KimMachineGun/automemlimit from 0.2.6 to 0.3.0

Bumps [github.com/KimMachineGun/automemlimit](https://github.com/KimMachineGun/automemlimit) from 0.2.6 to 0.3.0.
- [Commits](https://github.com/KimMachineGun/automemlimit/compare/v0.2.6...v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/KimMachineGun/automemlimit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot]
2023-09-04 16:06:47 +02:00
committed by Ralf Haferkamp
parent b627e7a0d6
commit 8d7389960c
5 changed files with 116 additions and 49 deletions
+5
View File
@@ -32,6 +32,11 @@ package main
import "github.com/KimMachineGun/automemlimit/memlimit"
func init() {
memlimit.SetGoMemLimitWithOpts(
memlimit.WithRatio(0.9),
memlimit.WithEnv(),
memlimit.WithProvider(memlimit.FromCgroup),
)
memlimit.SetGoMemLimitWithEnv()
memlimit.SetGoMemLimit(0.9)
memlimit.SetGoMemLimitWithProvider(memlimit.Limit(1024*1024), 0.9)