# There is insufficient memory for the Java Runtime Environment to continue

**URL:** <https://discuss.elastic.co/t/there-is-insufficient-memory-for-the-java-runtime-environment-to-continue/18125>\
**Category:** Elasticsearch\
**Created:** [June 16, 2014, 2:53am UTC](https://discuss.elastic.co/t/there-is-insufficient-memory-for-the-java-runtime-environment-to-continue/18125 "2014-06-16T02:53:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11153](https://avatars.discourse-cdn.com/v4/letter/1/e274bd/32.png) [@11153](https://discuss.elastic.co/u/11153)\
**Post date:** [June 16, 2014, 2:53am UTC](https://discuss.elastic.co/t/there-is-insufficient-memory-for-the-java-runtime-environment-to-continue/18125/1 "2014-06-16T02:53:05Z")

</div>

Last week, I indexed 1.2 TB data with one shard/zero replica on a single  
node, and ES worked fine.

Later I tried to indexed the same amount of data with 24 shards on a node.  
But when my index size went to 480 GB (20GB in each shard), ElasticSearch  
crashed and the error message "There is insufficient memory for the Java  
Runtime Environment to continue" was thrown.

After that, every time I tried to run ElasticSearch, it soon got crashed  
and the same error message appeared repeatedly.

My ES\_HEAP\_SIZE is 64g (on a machine of 96 GB RAM). Supposed 480GB index  
size for 24 shards is not a huge number to ElasticSearch. So how come ES  
got OOM on this configuration? What should I do to get rid of this problem  
and have more than 100 shards on a single node as this thread  
[http://goo.gl/pAmKzb](http://goo.gl/pAmKzb) did? Thank you.

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/07b9d5d7-64d0-413f-9cad-911ad1664233%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/07b9d5d7-64d0-413f-9cad-911ad1664233%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:22am UTC](https://discuss.elastic.co/t/there-is-insufficient-memory-for-the-java-runtime-environment-to-continue/18125/2 "2017-07-06T01:22:21Z")

</div>


