From b9adf95010bc1f4972f1faff6d92aca2251517b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Thu, 21 Jan 2021 14:06:18 +0000 Subject: [PATCH] watchdog: increase heapprof capture threshold to 90%. --- node/modules/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/modules/core.go b/node/modules/core.go index f8b248572..83a7e8d42 100644 --- a/node/modules/core.go +++ b/node/modules/core.go @@ -81,7 +81,7 @@ func MemoryWatchdog(lr repo.LockedRepo, lc fx.Lifecycle, constraints system.Memo // will be captured during life of this process. watchdog.HeapProfileDir = filepath.Join(lr.Path(), "heapprof") watchdog.HeapProfileMaxCaptures = 10 - watchdog.HeapProfileThreshold = 0.1 + watchdog.HeapProfileThreshold = 0.9 watchdog.Logger = logWatchdog policy := watchdog.NewWatermarkPolicy(0.50, 0.60, 0.70, 0.85, 0.90, 0.925, 0.95)