elasticsearch启动报错JVM is using the client VM.......

记一个 elasticsearch启动报错如下:

[2024-01-08T11:52:26,604][ERROR][o.e.b.Bootstrap          ] [oOjG39d] node validation exception
[1] bootstrap checks failed
[1]: JVM is using the client VM [OpenJDK Client VM] but should be using a server VM for the best performance
[2024-01-08T11:52:26,604][INFO ][o.e.n.Node               ] [oOjG39d] stopping ...
[2024-01-08T11:52:26,682][INFO ][o.e.n.Node               ] [oOjG39d] stopped
[2024-01-08T11:52:26,682][INFO ][o.e.n.Node               ] [oOjG39d] closing ...
[2024-01-08T11:52:26,697][INFO ][o.e.n.Node               ] [oOjG39d] closed

 

解决方案:

找到 jre安装目录 /lib /i386 /jvm.cfg 文件

默认是:

-client KNOWN
-server KNOWN

改成:

-server KNOWN
-client KNOWN

你可能感兴趣的:(bug解决,elasticsearch,大数据,搜索引擎)