# Nodes hot_threads

原文链接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-nodes-hot-threads.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-nodes-hot-threads.html)

译文链接 : [http://www.apache.wiki/display/Elasticsearch/Nodes+hot_threads](http://www.apache.wiki/display/Elasticsearch/Nodes+hot_threads)

贡献者 : [那伊抹微笑](/display/~wangyangting)

该 **API** 可以获取当前集群中每一个节点的 **hot threads**（热点线程）。**Endpoints**（端点）是 **`/_nodes/hot_threads`** 和`**/_nodes/{nodesIds}/hot_threads**。`

该输出是每一个节点的 **host threads** 的崩溃的纯文本。允许的参数是 : 

| 参数 | 描述 |
| --- | --- |
| `threads` | number of hot threads to provide, defaults to 3. |
| `interval` | the interval to do the second sampling of threads. Defaults to 500ms. |
| `type` | The type to sample, defaults to cpu, but supports wait and block to see hot threads that are in wait or block state. |
| `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. |