ES内存溢出,报错:java.lang.OutOfMemoryError: Java heap space
程序员文章站
2022-07-15 14:47:00
...
es集群挂掉,报错信息如下:
[WARN ][o.e.h.n.Netty4HttpServerTransport] [capitalcentre-14] caught exception while handling client http
traffic, closing connection [id: 0x2f997a9e, L:/10.21.3.24:9200 - R:/10.21.3.27:42172]
java.lang.OutOfMemoryError: Java heap space
heap过高导致内存溢出。内存溢出的现象:
解决:
在es目录下找到jvm.options文件
找到-XMS以及-XMX的值,增大内存,建议值调成16G,超过32G不生效。
推荐阅读
-
Tomcat同时部署多个应用——内存溢出(java.lang.OutOfMemoryError: PermGen space)的解决办法
-
ES内存溢出,报错:java.lang.OutOfMemoryError: Java heap space
-
java.lang.OutOfMemoryError: Java heap space解决方法:即就该内存大小
-
java.lang.OutOfMemoryError: Java heap space 报错实例
-
模拟实战排查堆内存溢出(java.lang.OutOfMemoryError: Java heap space)问题
-
读写文件时内存溢出问题思考(OutOfMemoryError: Java heap space)
-
JVM_内存溢出(Java heap space)
-
IntelliJ IDEA中运行Tomcat报内存溢出(java.lang.OutOfMemoryError: PermGen space)
-
内存溢出 Caused by: java.sql.SQLException: Error Caused by: java.lang.OutOfMemoryError: Java heap space
-
接口报错原因分析:handler dispatch failed;nested exceptionis java.lang.outofMemoryError:JAVA heap space