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>
This commit is contained in:
Heschi Kreinick 2020-02-18 15:17:40 -05:00
parent dc8ced655d
commit 8fd784fb38
1 changed files with 1 additions and 1 deletions

View File

@ -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