Skip to content

Commit

Permalink
Increase grpc message size limit in pprof
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls committed Jan 20, 2023
1 parent 168ec6e commit e2f80a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/cli/debug_pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"strings"

"google.golang.org/grpc"
empty "google.golang.org/protobuf/types/known/emptypb"

"github.com/ethereum/go-ethereum/internal/cli/flagset"
Expand Down Expand Up @@ -103,7 +104,7 @@ func (d *DebugPprofCommand) Run(args []string) int {
req.Profile = profile
}

stream, err := clt.DebugPprof(ctx, req)
stream, err := clt.DebugPprof(ctx, req, grpc.MaxCallRecvMsgSize(1024*1024*1024))

if err != nil {
return err
Expand Down

0 comments on commit e2f80a8

Please sign in to comment.