[英]What are the possible reasons behind the java lang outofmemoryerror java heap space in elasticsearch
I have seen lots of java lang outofmemoryerror java heap space
in elasticsearch
but I could find any help page that describes the possible reasons behind these errors in elastic search.我见过很多
java lang outofmemoryerror java heap space
在elasticsearch
,但我能找到一个描述弹性搜索这些错误背后可能的原因任何帮助页面。 I am getting errors for example:我收到错误,例如:
(2015-04-09 13:56:47,527 DEBUGaction.index Emil Blonsky observer: timeout notification from cluster service. timeout setting 1m, time since start 1m) Caused by: java.lang.OutOfMemoryError: Java heap space:
Possible reasons (some of them):可能的原因(其中一些):
"size"
"size"
An OOMed node needs to be restarted, btw.需要重新启动 OOMed 节点,顺便说一句。
I can't speak to your question directly, but there are a couple of approaches to this type of problem that I've found useful in the past:我无法直接回答您的问题,但我过去发现有几种方法可以解决此类问题:
Use JVisualVM to inspect the contents of the heap.使用 JVisualVM 检查堆的内容。 JVisualVM is a free tool that's shipped with the JDK.
JVisualVM 是 JDK 附带的免费工具。 It lets you inspect details of running JVMs, including a full dump of the heap.
它允许您检查运行 JVM 的详细信息,包括堆的完整转储。
If you suspect the error is simply due to the JVM not having enough memory available, you can increase it manually via heap parametersreference .如果您怀疑错误仅仅是由于 JVM 没有足够的可用内存,您可以通过堆参数参考手动增加它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.