aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorJames Hartig <fastest963@gmail.com>2020-09-21 22:43:10 -0400
committerJames Hartig <fastest963@gmail.com>2020-09-21 22:43:10 -0400
commit658fc2e5b619c453ddecc805bc363a25f75ff22d (patch)
tree48ede45893c2130d3e039f7fe4af8440835eb02d /weed/command/server.go
parent91e4eca1e98cb5195346d90a2cc1fb9c92557213 (diff)
downloadseaweedfs-658fc2e5b619c453ddecc805bc363a25f75ff22d.tar.xz
seaweedfs-658fc2e5b619c453ddecc805bc363a25f75ff22d.zip
Allow option to enable volume pprof on server
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index 6f40263bb..aee62290a 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -99,7 +99,7 @@ func init() {
serverOptions.v.fileSizeLimitMB = cmdServer.Flag.Int("volume.fileSizeLimitMB", 1024, "limit file size to avoid out of memory")
serverOptions.v.publicUrl = cmdServer.Flag.String("volume.publicUrl", "", "publicly accessible address")
serverOptions.v.preStopSeconds = cmdServer.Flag.Int("volume.preStopSeconds", 10, "number of seconds between stop send heartbeats and stop volume server")
- serverOptions.v.pprof = &False
+ serverOptions.v.pprof = cmdServer.Flag.Bool("volume.pprof", false, "enable pprof http handlers. precludes --memprofile and --cpuprofile")
s3Options.port = cmdServer.Flag.Int("s3.port", 8333, "s3 server http listen port")
s3Options.domainName = cmdServer.Flag.String("s3.domainName", "", "suffix of the host name, {bucket}.{domainName}")