nodes-hot-threads.asciidoc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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`. If you are using this API for
  38. troubleshooting, set this parameter to a large number (e.g.
  39. `9999`) to get information about all the threads in the system.
  40. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  41. `type`::
  42. (Optional, string) The type to sample. Available options are `block`, `cpu`, and
  43. `wait`. Defaults to `cpu`.
  44. [[cluster-nodes-hot-threads-api-example]]
  45. ==== {api-examples-title}
  46. [source,console]
  47. --------------------------------------------------
  48. GET /_nodes/hot_threads
  49. GET /_nodes/nodeId1,nodeId2/hot_threads
  50. --------------------------------------------------