From fdec48f985969a6c5577559e4fb26899cc7c2a7e Mon Sep 17 00:00:00 2001 From: Abhishek Pandey Date: Mon, 20 Nov 2023 22:30:16 -0800 Subject: [PATCH] Increase gomemlimits. --- src/corso.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corso.go b/src/corso.go index 0723235fc..630a453da 100644 --- a/src/corso.go +++ b/src/corso.go @@ -30,7 +30,7 @@ var ( func main() { defer profile.Start(profile.MemProfile).Stop() - debug.SetMemoryLimit(1 * 1024 * 1024 * 1024) + debug.SetMemoryLimit(2 * 1024 * 1024 * 1024) go func() { for { @@ -43,7 +43,7 @@ func main() { // or if its been 2 mins since last profile, capture it t := time.Now().Truncate(time.Minute) // if (m.HeapAlloc > uint64(3*1024*1024*1024) && perMinuteMap[t] == 0) || time.Since(timeSinceRefresh) > 2*time.Minute { - if time.Since(timeSinceRefresh) > 3*time.Minute { + if time.Since(timeSinceRefresh) > 5*time.Minute { filename := "mem." + strconv.Itoa(profileCounter) + ".pprof" f, _ := os.Create(filename)