We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab5e19b commit 1d78031Copy full SHA for 1d78031
1 file changed
system/autolimits.go
@@ -3,6 +3,7 @@ package system
3
import (
4
"log/slog"
5
"runtime"
6
+ "time"
7
8
"github.com/KimMachineGun/automemlimit/memlimit"
9
humanize "github.com/dustin/go-humanize"
@@ -27,6 +28,7 @@ func AutoProcMemLimit(logger *slog.Logger) {
27
28
),
29
30
memlimit.WithLogger(logger),
31
+ memlimit.WithRefreshInterval(1*time.Minute),
32
)
33
if err != nil {
34
logger.Error(`failed to set GOMEMLIMIT`, "error", err)
0 commit comments