2013-08-28 19:24:34 -04:00
|
|
|
[[cluster-nodes-hot-threads]]
|
2019-10-22 13:27:31 -04:00
|
|
|
=== Nodes hot threads API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Nodes hot threads</titleabbrev>
|
|
|
|
++++
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2019-08-16 09:34:19 -04:00
|
|
|
Returns the hot threads on each selected node in the cluster.
|
|
|
|
|
|
|
|
|
|
|
|
[[cluster-nodes-hot-threads-api-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`GET /_nodes/hot_threads` +
|
|
|
|
|
2019-08-23 10:57:20 -04:00
|
|
|
`GET /_nodes/<node_id>/hot_threads`
|
2019-08-16 09:34:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[cluster-nodes-hot-threads-api-desc]]
|
|
|
|
==== {api-description-title}
|
|
|
|
|
2018-08-20 09:21:31 -04:00
|
|
|
This API yields a breakdown of the hot threads on each selected node in the
|
2019-08-16 09:34:19 -04:00
|
|
|
cluster. The output is plain text with a breakdown of each node's top hot
|
|
|
|
threads.
|
|
|
|
|
|
|
|
|
|
|
|
[[cluster-nodes-hot-threads-api-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=node-id]
|
2019-08-16 09:34:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[cluster-nodes-hot-threads-api-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
|
|
|
|
|
|
|
`ignore_idle_threads`::
|
|
|
|
(Optional, boolean) 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.
|
|
|
|
|
|
|
|
`interval`::
|
|
|
|
(Optional, <<time-units, time units>>) The interval to do the second
|
|
|
|
sampling of threads. Defaults to `500ms`.
|
|
|
|
|
|
|
|
`snapshots`::
|
|
|
|
(Optional, integer) Number of samples of thread stacktrace. Defaults to
|
|
|
|
`10`.
|
|
|
|
|
|
|
|
`threads`::
|
|
|
|
(Optional, integer) Specifies the number of hot threads to provide
|
|
|
|
information for. Defaults to `3`.
|
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
|
2019-08-16 09:34:19 -04:00
|
|
|
|
|
|
|
`type`::
|
|
|
|
(Optional, string) The type to sample. Available options are `block`, `cpu`, and
|
|
|
|
`wait`. Defaults to `cpu`.
|
|
|
|
|
|
|
|
|
|
|
|
[[cluster-nodes-hot-threads-api-example]]
|
|
|
|
==== {api-examples-title}
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2019-09-09 13:38:14 -04:00
|
|
|
[source,console]
|
2018-08-20 09:21:31 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
GET /_nodes/hot_threads
|
|
|
|
GET /_nodes/nodeId1,nodeId2/hot_threads
|
|
|
|
--------------------------------------------------
|