-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable live pprof at /.pprof/ #71
Conversation
@vadmeste I find the HTTP profilers to be much more useful since it doesn't require restarting. Maybe we could expose them on a separate port, so adding a parameter
|
This is better as @klauspost suggested |
31ebadc
to
7616030
Compare
Running `go tool pprof http://localhost:8080/minio/pprof/profile?seconds=30` will get CPU profiling for 20 seconds Supported profilers are: goroutine, threadcreate, heap, allocs, block, mutex, symbol, trace and profile (cpu profiling)
7616030
to
d2b1858
Compare
@klauspost I made the change, by the way, this does not require any flag.. it can be always enabled |
@vadmeste The reason for the separate port is for safety reasons. While adding it to the default port is a lot easier, both for use and setup it does allow anyone to access potentially resource intensive calls. |
But this will require a flag and a restart |
Yes, why I wrote that "adding it to the default port is a lot easier, both for use and setup". But it doesn't look like something we would like to have exposed externally. But it is easier to block a port. |
Co-authored-by: Harshavardhana <harsha@minio.io>
Running
go tool pprof http://localhost:8080/minio/pprof/profile?seconds=30
will get CPUprofiling for 20 seconds
Supported profilers are: goroutine, threadcreate, heap, allocs, block,
mutex, symbol, trace and profile (cpu profiling)