Debug
/debug/pprof/allRetrieve all runtime profiles
Collects samples and returns reports for the following Go runtime profiles:
- allocs: All past memory allocations
- block: Stack traces that led to blocking on synchronization primitives
- cpu: (Optional) Program counters sampled from the executing stack.
Include by passing the
cpuquery parameter with a duration value. Equivalent to the report fromGET /debug/pprof/profile?seconds=NUMBER_OF_SECONDS. - goroutine: All current goroutines
- heap: Memory allocations for live objects
- mutex: Holders of contended mutexes
- threadcreate: Stack traces that led to the creation of new OS threads
Parameters
Query parameters
cpu
string <duration>Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/debug/pprof/all" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
string/debug/pprof/allocsRetrieve the memory allocations runtime profile
Parameters
Query parameters
debug
integer <int64>0: (Default) Return the report as a gzip-compressed protocol buffer.1: Return a response body with the report formatted as human-readable text. The report contains comments that translate addresses to function names and line numbers for debugging.
debug=1 is mutually exclusive with the seconds query parameter.
0
, 1seconds
string <int64>Number of seconds to collect statistics.
seconds is mutually exclusive with debug=1.
Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/debug/pprof/allocs" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
?debug=1), response body contains a human-readable profile.code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
string/debug/pprof/blockRetrieve the block runtime profile
Parameters
Query parameters
debug
integer <int64>0: (Default) Return the report as a gzip-compressed protocol buffer.1: Return a response body with the report formatted as human-readable text. The report contains comments that translate addresses to function names and line numbers for debugging.
debug=1 is mutually exclusive with the seconds query parameter.
0
, 1seconds
string <int64>Number of seconds to collect statistics.
seconds is mutually exclusive with debug=1.
Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/debug/pprof/block" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
?debug=1), response body contains a human-readable profile.code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
string/debug/pprof/cmdlineRetrieve the command line invocation
Parameters
Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/debug/pprof/cmdline" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
string/debug/pprof/goroutineRetrieve the goroutines runtime profile
Parameters
Query parameters
debug
integer <int64>0: (Default) Return the report as a gzip-compressed protocol buffer.1: Return a response body with the report formatted as human-readable text with comments that translate addresses to function names and line numbers for debugging.
debug=1 is mutually exclusive with the seconds query parameter.
0
, 1seconds
string <int64>Number of seconds to collect statistics.
seconds is mutually exclusive with debug=1.
Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/debug/pprof/goroutine" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
?debug=1), response body contains a human-readable profile.code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
string/debug/pprof/heapRetrieve the heap runtime profile
Collects statistics and returns a Go runtime profile report of memory allocations for live objects.
To run garbage collection before sampling,
pass the gc query parameter with a value of 1.
Parameters
Query parameters
debug
integer <int64>0: (Default) Return the report as a gzip-compressed protocol buffer.1: Return a response body with the report formatted as human-readable text. The report contains comments that translate addresses to function names and line numbers for debugging.
debug=1 is mutually exclusive with the seconds query parameter.
0
, 1seconds
string <int64>Number of seconds to collect statistics.
seconds is mutually exclusive with debug=1.
gc
integer <int64>0: (Default) don’t force garbage collection before sampling.1: Force garbage collection before sampling.
0
, 1Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/debug/pprof/heap" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
?debug=1), response body contains a human-readable profile.code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
string/debug/pprof/mutexRetrieve the mutual exclusion (mutex) runtime profile
Parameters
Query parameters
debug
integer <int64>0: (Default) Return the report as a gzip-compressed protocol buffer.1: Return a response body with the report formatted as human-readable text. The report contains comments that translate addresses to function names and line numbers for debugging.
debug=1 is mutually exclusive with the seconds query parameter.
0
, 1seconds
string <int64>Number of seconds to collect statistics.
seconds is mutually exclusive with debug=1.
Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/debug/pprof/mutex" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
?debug=1), response body contains a human-readable profile.code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
string/debug/pprof/profileRetrieve the CPU runtime profile
Parameters
Query parameters
seconds
string <int64>30 seconds.Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/debug/pprof/profile" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
string/debug/pprof/threadcreateRetrieve the threadcreate runtime profile
Parameters
Query parameters
debug
integer <int64>0: (Default) Return the report as a gzip-compressed protocol buffer.1: Return a response body with the report formatted as human-readable text. The report contains comments that translate addresses to function names and line numbers for debugging.
debug=1 is mutually exclusive with the seconds query parameter.
0
, 1seconds
string <int64>Number of seconds to collect statistics.
seconds is mutually exclusive with debug=1.
Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/debug/pprof/threadcreate" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
?debug=1), response body contains a human-readable profile.code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
string/debug/pprof/traceRetrieve the runtime execution trace
Parameters
Query parameters
seconds
string <int64>Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/debug/pprof/trace" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
trace command.code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
stringWas this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.