All methods and paths for this operation:
Get a breakdown of the hot threads on each selected node in the cluster. The output is plain text with a breakdown of the top hot threads for each node.
Required authorization
- Cluster privileges:
monitor,manage
Query parameters
-
If true, known idle threads (e.g. waiting in a socket select, or to get a task from an empty queue) are filtered out.
Default value is
true. -
The interval to do the second sampling of threads.
Default value is
500ms. -
Number of samples of thread stacktrace.
Default value is
10. -
Specifies the number of hot threads to provide information for.
Default value is
3. -
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Default value is
30s. -
The type to sample.
Supported values include:
cpu: Threads that consume the most CPU time.wait: Threads that have been in a waiting state the longest.block: Threads that have been blocked the longest.gpu: Threads that consume the most GPU time.mem: Threads that allocate the most memory.
Default value is
cpu. -
The sort order for 'cpu' type
Supported values include:
cpu: Threads that consume the most CPU time.wait: Threads that have been in a waiting state the longest.block: Threads that have been blocked the longest.gpu: Threads that consume the most GPU time.mem: Threads that allocate the most memory.
Default value is
total.
GET /_nodes/hot_threads
resp = client.nodes.hot_threads()
const response = await client.nodes.hotThreads();
response = client.nodes.hot_threads
$resp = $client->nodes()->hotThreads();
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_nodes/hot_threads"
var response = await client.Nodes.HotThreadsAsync();
client.nodes().hotThreads(h -> h);