nodes-hot-threads.asciidoc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [[cluster-nodes-hot-threads]]
  2. === Nodes hot threads API
  3. ++++
  4. <titleabbrev>Nodes hot threads</titleabbrev>
  5. ++++
  6. Returns the hot threads on each selected node in the cluster.
  7. [[cluster-nodes-hot-threads-api-request]]
  8. ==== {api-request-title}
  9. `GET /_nodes/hot_threads` +
  10. `GET /_nodes/<node_id>/hot_threads`
  11. [[cluster-nodes-hot-threads-api-prereqs]]
  12. ==== {api-prereq-title}
  13. * If the {es} {security-features} are enabled, you must have the `monitor` or
  14. `manage` <<privileges-list-cluster,cluster privilege>> to use this API.
  15. [[cluster-nodes-hot-threads-api-desc]]
  16. ==== {api-description-title}
  17. This API yields a breakdown of the hot threads on each selected node in the
  18. cluster. The output is plain text with a breakdown of each node's top hot
  19. threads.
  20. [[cluster-nodes-hot-threads-api-path-params]]
  21. ==== {api-path-parms-title}
  22. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=node-id]
  23. [[cluster-nodes-hot-threads-api-query-params]]
  24. ==== {api-query-parms-title}
  25. `ignore_idle_threads`::
  26. (Optional, Boolean) If true, known idle threads (e.g. waiting in a socket
  27. select, or to get a task from an empty queue) are filtered out. Defaults to
  28. true.
  29. `interval`::
  30. (Optional, <<time-units, time units>>) The interval to do the second
  31. sampling of threads. Defaults to `500ms`.
  32. `snapshots`::
  33. (Optional, integer) Number of samples of thread stacktrace. Defaults to
  34. `10`.
  35. `threads`::
  36. (Optional, integer) Specifies the number of hot threads to provide
  37. information for. Defaults to `3`.
  38. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  39. `type`::
  40. (Optional, string) The type to sample. Available options are `block`, `cpu`, and
  41. `wait`. Defaults to `cpu`.
  42. [[cluster-nodes-hot-threads-api-example]]
  43. ==== {api-examples-title}
  44. [source,console]
  45. --------------------------------------------------
  46. GET /_nodes/hot_threads
  47. GET /_nodes/nodeId1,nodeId2/hot_threads
  48. --------------------------------------------------