Add runtime mem stats to server info (#11995)

Adds information about runtime+gc memory use.
This commit is contained in:
Klaus Post
2021-04-07 19:40:51 +02:00
committed by GitHub
parent d267d152ba
commit 48c5e7e5b6
3 changed files with 4 additions and 15 deletions

View File

@@ -19,6 +19,7 @@ package cmd
import (
"context"
"net/http"
"runtime"
"time"
"github.com/minio/minio/cmd/logger"
@@ -67,6 +68,7 @@ func getLocalServerProperty(endpointServerPools EndpointServerPools, r *http.Req
CommitID: CommitID,
Network: network,
}
runtime.ReadMemStats(&props.MemStats)
objLayer := newObjectLayerFn()
if objLayer != nil && !globalIsGateway {