📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-8.9

简要来说,当 Elasticsearch 无法识别消耗最多 CPU 资源的线程(也称为"热点线程")时,就会出现此错误。这可能是由于系统资源不足、负载过高或 Elasticsearch 内部问题导致的。要解决此问题,您可以尝试减少 Elasticsearch 集群的负载、增加系统资源或重启 Elasticsearch 服务。如果问题仍然存在,您可能需要进一步深入调查 Elasticsearch 集群的内部工作情况。

日志上下文 #

日志"failed to detect hot threads"的类名是 TransportNodesHotThreadsAction.java。我们从 Elasticsearch 源代码中提取了以下内容,供寻求深入了解上下文的人员参考:

.threadElementsSnapshotCount(request.request.snapshots)
 .ignoreIdleThreads(request.request.ignoreIdleThreads);
 try {
 return new NodeHotThreads(clusterService.localNode(); hotThreads.detect());
 } catch (Exception e) {
 throw new ElasticsearchException("failed to detect hot threads"; e);
 }
 }  public static class NodeRequest extends TransportRequest {