2013-08-28 19:24:34 -04:00
|
|
|
[[cluster-nodes-hot-threads]]
|
|
|
|
== Nodes hot_threads
|
|
|
|
|
2018-08-20 09:21:31 -04:00
|
|
|
This API yields a breakdown of the hot threads on each selected node in the
|
|
|
|
cluster. Its endpoints are `/_nodes/hot_threads` and
|
|
|
|
`/_nodes/{nodes}/hot_threads`:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2018-08-20 09:21:31 -04:00
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
GET /_nodes/hot_threads
|
|
|
|
GET /_nodes/nodeId1,nodeId2/hot_threads
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
|
|
|
|
The first command gets the hot threads of all the nodes in the cluster. The
|
|
|
|
second command gets the hot threads of only `nodeId1` and `nodeId2`. Nodes can
|
|
|
|
be selected using <<cluster-nodes,node filters>>.
|
|
|
|
|
|
|
|
The output is plain text with a breakdown of each node's top hot threads. The
|
|
|
|
allowed parameters are:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[horizontal]
|
2014-02-06 08:19:17 -05:00
|
|
|
`threads`:: number of hot threads to provide, defaults to 3.
|
2013-08-28 19:24:34 -04:00
|
|
|
`interval`:: the interval to do the second sampling of threads.
|
2014-02-06 08:19:17 -05:00
|
|
|
Defaults to 500ms.
|
2013-08-28 19:24:34 -04:00
|
|
|
`type`:: The type to sample, defaults to cpu, but supports wait and
|
|
|
|
block to see hot threads that are in wait or block state.
|
2014-12-17 11:59:31 -05:00
|
|
|
`ignore_idle_threads`:: If true, known idle threads (e.g. waiting in a socket select, or to
|
|
|
|
get a task from an empty queue) are filtered out. Defaults to true.
|