gpt4 book ai didi

java - elasticsearch 未启动 {0.90.0} : Startup Failed

转载 作者:行者123 更新时间:2023-12-02 06:58:40 26 4
gpt4 key购买 nike

我无法启动elasticsearch。我试过了

bin/elasticsearch

bin/elasticsearch -f

bin/elasticsearch -f ES_HEAP_SIZE=4g

但在停顿两秒后我不断收到以下消息...

{0.90.0}: Startup Failed ...
- OutOfMemoryError[unable to create new native thread]

注 1:在我将 400 万个文档索引到服务器之前,elasticsearch 工作得很好,之后我不断收到此错误。

注2:即使elasticsearch没有启动,我仍然能够在elasticsearch服务器上执行curl命令(确实很奇怪)

curl -XGET http://localhost:9200
{
"ok" : true,
"status" : 200,
"name" : "Thumbelina",
"version" : {
"number" : "0.90.0",
"snapshot_build" : false
},
"tagline" : "You Know, for Search"
}

我的猜测是,对 400 万个文档的搜索查询之一仍在运行,但我尝试退出终端、终止进程、增加堆大小并使用 bin/elasticsearch stop 停止 elasticsearch 进程。我的elasticsearch版本是0.90.0。抱歉问了这么长的问题,任何帮助都会很棒。谢谢。

最佳答案

This discussion意味着增加 ulimit 值可能会有所帮助。在 this Elasticsearch reference page 上搜索 ulimit了解更多详细信息。

该进程是否仍然在操作系统上运行(例如,在主机上使用 ps)?

关于java - elasticsearch 未启动 {0.90.0} : Startup Failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16972394/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com