# A fatal error has been detected by the Java Runtime Environment

**URL:** https://discuss.elastic.co/t/a-fatal-error-has-been-detected-by-the-java-runtime-environment/14443
**Category:** Elasticsearch
**Created:** [November 18, 2013, 7:31am UTC](https://discuss.elastic.co/t/a-fatal-error-has-been-detected-by-the-java-runtime-environment/14443 "2013-11-18T07:31:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![abdo](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@abdo](https://discuss.elastic.co/u/abdo)
#### Post date: [November 18, 2013, 7:31am UTC](https://discuss.elastic.co/t/a-fatal-error-has-been-detected-by-the-java-runtime-environment/14443/1 "2013-11-18T07:31:06Z")

</div>

Hi all  
Sorry if this issue has been discussed before. I ran into this issue  
several time and found some people suggesting to increase the swap (I run  
ES on ubuntu linux) but this didn't help. attached is the dump file of the  
error.

Best regards

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)
#### Post date: [November 18, 2013, 8:17am UTC](https://discuss.elastic.co/t/a-fatal-error-has-been-detected-by-the-java-runtime-environment/14443/2 "2013-11-18T08:17:19Z")

</div>

It has nothing to do with swap.

Change your JVM, it seems to be broken. Does the error still occur with  
Oracle JVM?

It will help to increase heap to 2 GB with -Xmx2g or ES\_HEAP\_SIZE="2g"

Jörg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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: [July 6, 2017, 2:06am UTC](https://discuss.elastic.co/t/a-fatal-error-has-been-detected-by-the-java-runtime-environment/14443/3 "2017-07-06T02:06:31Z")

</div>


