nodes-hot-threads.asciidoc 1.2 KB

1234567891011121314151617181920212223242526272829
  1. [[cluster-nodes-hot-threads]]
  2. === Nodes hot_threads
  3. This API yields a breakdown of the hot threads on each selected node in the
  4. cluster. Its endpoints are `/_nodes/hot_threads` and
  5. `/_nodes/{nodes}/hot_threads`:
  6. [source,js]
  7. --------------------------------------------------
  8. GET /_nodes/hot_threads
  9. GET /_nodes/nodeId1,nodeId2/hot_threads
  10. --------------------------------------------------
  11. // CONSOLE
  12. The first command gets the hot threads of all the nodes in the cluster. The
  13. second command gets the hot threads of only `nodeId1` and `nodeId2`. Nodes can
  14. be selected using <<cluster-nodes,node filters>>.
  15. The output is plain text with a breakdown of each node's top hot threads. The
  16. allowed parameters are:
  17. [horizontal]
  18. `threads`:: number of hot threads to provide, defaults to 3.
  19. `interval`:: the interval to do the second sampling of threads.
  20. Defaults to 500ms.
  21. `type`:: The type to sample, defaults to cpu, but supports wait and
  22. block to see hot threads that are in wait or block state.
  23. `ignore_idle_threads`:: If true, known idle threads (e.g. waiting in a socket select, or to
  24. get a task from an empty queue) are filtered out. Defaults to true.