diff options
author | Heschi Kreinick <heschi@google.com> | 2020-02-18 15:17:40 -0500 |
---|---|---|
committer | Heschi Kreinick <heschi@google.com> | 2020-02-18 20:58:54 +0000 |
commit | 8fd784fb38225e6ff371bb5b0a122dbbd5f3c3cd (patch) | |
tree | 498b30168167cc193e0fa770f15f5f3cb81a028c /internal/lsp/debug | |
parent | dc8ced655da2204da9ae9a38e8f5a8884c536943 (diff) | |
download | golang-x-tools-8fd784fb38225e6ff371bb5b0a122dbbd5f3c3cd.tar.gz |
internal/lsp/debug: drop memory debug threshold to 1GiB
Most people do not have giant 64-GiB workstations, so 10GiB of RAM (5
active heap, 5 inactive for GOGC=100) is a really high threshold. Drop
to 1GiB active to drop profiles.
Change-Id: If0ae418828377a648a93322e269f4610fd64ebb3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/219937
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Diffstat (limited to 'internal/lsp/debug')
-rw-r--r-- | internal/lsp/debug/serve.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/lsp/debug/serve.go b/internal/lsp/debug/serve.go index 3b10a37bf..c65c8f33c 100644 --- a/internal/lsp/debug/serve.go +++ b/internal/lsp/debug/serve.go @@ -335,7 +335,7 @@ func (i *Instance) Serve(ctx context.Context) error { func (i *Instance) MonitorMemory(ctx context.Context) { tick := time.NewTicker(time.Second) - nextThresholdGiB := uint64(5) + nextThresholdGiB := uint64(1) go func() { for { <-tick.C |