Skip to content

Commit

Permalink
Change pprof listen port to 6060 (#213)
Browse files Browse the repository at this point in the history
This is what the examples are using in the doc:
https://pkg.go.dev/net/http/pprof so it could be the most expected way
to use this
  • Loading branch information
ffilippopoulos authored Sep 5, 2024
1 parent 18a013c commit 3f366a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
flagMaxRequestsPerSecond = flag.Float64("max-requests-per-second", 500.0, "maximum allowed requests to the server per second")
flagMaxPeerRequestsPerSecond = flag.Float64("max-peer-requests-per-second", 50.0, "maximum allowed requests from a peer per second")
flagMetricsListenPort = flag.String("metrics-listen-port", "8080", "Listen port to serve prometheus metrics")
flagPprofListenAddress = flag.String("pprof-listen-address", "127.0.0.1:8081", "Listen address to expose pprof endpoints")
flagPprofListenAddress = flag.String("pprof-listen-address", "127.0.0.1:6060", "Listen address to expose pprof endpoints")

bearerRe = regexp.MustCompile(`[A-Z|a-z0-9\-\._~\+\/]+=*`)
)
Expand Down

0 comments on commit 3f366a3

Please sign in to comment.