# Elasticsearch not create heap dump file when outofmemory

**URL:** https://discuss.elastic.co/t/elasticsearch-not-create-heap-dump-file-when-outofmemory/211226
**Category:** Elasticsearch
**Created:** [December 10, 2019, 6:14am UTC](https://discuss.elastic.co/t/elasticsearch-not-create-heap-dump-file-when-outofmemory/211226 "2019-12-10T06:14:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![saiergon](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@saiergon](https://discuss.elastic.co/u/saiergon)
#### Post date: [December 10, 2019, 6:14am UTC](https://discuss.elastic.co/t/elasticsearch-not-create-heap-dump-file-when-outofmemory/211226/1 "2019-12-10T06:14:56Z")

</div>

my elasticsearch encounterd outofmemory exception, but it not create heap dump file

**the log:**

```auto
[2019-12-09T20:33:16,878][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-xxx] fatal error in thread [elasticsearch[node-xxx-][search][T#24]], exiting
java.lang.OutOfMemoryError: Java heap space
[2019-12-09T20:33:07,980][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-xxx] fatal error in thread [elasticsearch[node-xxx-][search][T#25]], exiting
java.lang.OutOfMemoryError: Java heap space
[2019-12-09T20:33:16,895][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-xxx-] fatal error in thread [elasticsearch[node-xxx-][search][T#5]], exiting
java.lang.OutOfMemoryError: Java heap space
[2019-12-09T20:33:16,902][DEBUG][o.e.a.a.c.n.i.TransportNodesInfoAction] [node-xxx-] failed to execute on node [x7X4V64oS8CEzGfkpmUgeA]
org.elasticsearch.transport.ReceiveTimeoutTransportException: [node-xxx-][xxx:9300][cluster:monitor/nodes/info[n]] request_id [1040257164] timed out after [168842ms]
        at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:908) [elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:527) [elasticsearch-5.2.0.jar:5.2.0]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]
[2019-12-09T20:33:16,902][DEBUG][o.e.a.a.c.n.i.TransportNodesInfoAction] [node-xxx-] failed to execute on node [pC6DBL4IQ6Ka3FCRj-bAoA]
org.elasticsearch.transport.ReceiveTimeoutTransportException: [node-xxx-][xxx:9300][cluster:monitor/nodes/info[n]] request_id [1040257111] timed out after [186442ms]
        at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:908) [elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:527) [elasticsearch-5.2.0.jar:5.2.0]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]
[2019-12-09T20:33:16,909][DEBUG][o.e.a.a.c.n.i.TransportNodesInfoAction] [node-xxx-] failed to execute on node [oQa8EB3CRJuWJt7Jy8rmYQ]
org.elasticsearch.transport.ReceiveTimeoutTransportException: [node-xxx-][xxx:9300][cluster:monitor/nodes/info[n]] request_id [1040256994] timed out after [186525ms]
        at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:908) [elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:527) [elasticsearch-5.2.0.jar:5.2.0]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]

```

**jvm config:**

```auto
-XX:+HeapDumpOnOutOfMemoryError

-XX:HeapDumpPath=/data/home/search

```

the `/data/home/search` path exist, and elasticsearch has access permission

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 7, 2020, 6:15am UTC](https://discuss.elastic.co/t/elasticsearch-not-create-heap-dump-file-when-outofmemory/211226/2 "2020-01-07T06:15:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
