Kibana Elasticsearch 7出现127错误,为什么?

vi4fp9gy  于 2023-11-15  发布在  Kibana
关注(0)|答案(1)|浏览(254)

我有一个问题与Elasticsearch 7.我运行Elasticsearch,Kibana和应用程序在Linux服务器上与64GB RAM.由于未知的原因,应用程序挂起工作几个小时后,因为elasticsearch服务正在下降127错误

elasticsearch.service - Elasticsearch
   Loaded: loaded (/etc/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2023-10-18 06:34:11 CEST;
     Docs: Elasticsearch Platform — Find real-time answers at scale 
  Process: 11831 ExecStart=/opt/elastic/elasticsearch-7.17.5/bin/elasticsearch -p /opt/elastic/elasticsearch-7.17.5/elasticsearch.pid (code=exited, status=127)
Main PID: 11831 (code=exited, status=127)
   CGroup: /system.slice/elasticsearch.service

字符串
在Elastic中,我可以看到这样一个错误:

Oct 18 06:34:11 elasticsearch[11831]: [23182.898s][warning][os,thread] Failed to start thread "Unknown thread" - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
Oct 18 06:34:11 elasticsearch[11831]: [23182.900s][warning][os,thread] Failed to start the native thread for java.lang.Thread "elasticsearch[opdm-node][[.kibana_task_manager_7.17.5_001][0]: Lucene Merge Thread #981]"
Oct 18 06:34:11 elasticsearch[11831]: [23182.898s][warning][os,thread] Failed to start thread "Unknown thread" - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
Oct 18 06:34:11 elasticsearch[11831]: [23182.903s][warning][os,thread] Failed to start thread "Unknown thread" - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
Oct 18 06:34:11 elasticsearch[11831]: [23182.900s][warning][os,thread] Failed to start the native thread for java.lang.Thread "elasticsearch[onode][[.kibana_task_manager_7.17.5_001][0]: Lucene Merge Thread #981]"
Oct 18 06:34:11 elasticsearch[11831]: [23182.904s][warning][os,thread] Failed to start the native thread for java.lang.Thread "elasticsearch[node][refresh][T#9]"
Oct 18 06:34:11 elasticsearch[11831]: [23182.903s][warning][os,thread] Failed to start thread "Unknown thread" - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
Oct 18 06:34:11 elasticsearch[11831]: [23182.904s][warning][os,thread] Failed to start the native thread for java.lang.Thread "elasticsearch[node][refresh][T#9]"
Oct 18 06:34:11 elasticsearch[11831]: [2023-10-17T06:34:11,076][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [node] fatal error in thread [elasticsearch[node][refresh][T#8]], exiting
Oct 18 06:34:11 elasticsearch[11831]: java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reache


如何找到这个问题的原因?
我试着分析弹性结构,但没有发现任何可疑的

fbcarpbf

fbcarpbf1#

问题的原因在最后一个错误行:
OutOfMemoryError:无法创建本机线程:可能是内存不足或已达到进程/资源限制
您可能需要稍微增加堆大小,直到它停止崩溃。

相关问题