mirror of https://github.com/golang/go.git
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:
parent
dc8ced655d
commit
8fd784fb38
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue