# How to increase memory

**URL:** <https://discuss.elastic.co/t/how-to-increase-memory/10681>\
**Category:** Elasticsearch\
**Created:** [February 9, 2013, 5:57pm UTC](https://discuss.elastic.co/t/how-to-increase-memory/10681 "2013-02-09T17:57:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![11114](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/11114/32/8524_2.png) [@11114](https://discuss.elastic.co/u/11114)\
**Post date:** [February 9, 2013, 5:57pm UTC](https://discuss.elastic.co/t/how-to-increase-memory/10681/1 "2013-02-09T17:57:04Z")

</div>

In continuation of the topic

> <https://github.com/elastic/elasticsearch/issues/2636>

in continuation of the topic

> <https://github.com/elastic/elasticsearch/issues/2636>

  
On the page  
[http://www.elasticsearch.org/guide/reference/setup/installation.html](http://www.elasticsearch.org/guide/reference/setup/installation.html) it is  
said that it is necessary to increase ES\_HEAP\_SIZE ES\_MAX\_MEM ES\_MIN\_MEM,  
but I have not found this configuration then  
/etc/elasticsearch/elasticsearch.yml. Here's my cluster

{  
"cluster\_name" : "elasticsearch",  
"nodes" : {  
"VPjABUm-REmy24NQ\_AkXDQ" : {  
"timestamp" : 1360432148849,  
"name" : "Sin",  
"transport\_address" : "inet[/ip:9300]",  
"hostname" : "Ubuntu-1204-precise-64-minimal",  
"indices" : {  
"store" : {  
"size" : "34.6gb",  
"size\_in\_bytes" : 37221752556,  
"throttle\_time" : "0s",  
"throttle\_time\_in\_millis" : 0  
},  
"docs" : {  
"count" : 58480,  
"deleted" : 4759  
},  
"indexing" : {  
"index\_total" : 20,  
"index\_time" : "1.7s",  
"index\_time\_in\_millis" : 1748,  
"index\_current" : 0,  
"delete\_total" : 0,  
"delete\_time" : "0s",  
"delete\_time\_in\_millis" : 0,  
"delete\_current" : 0  
},  
"get" : {  
"total" : 2,  
"time" : "5ms",  
"time\_in\_millis" : 5,  
"exists\_total" : 0,  
"exists\_time" : "0s",  
"exists\_time\_in\_millis" : 0,  
"missing\_total" : 2,  
"missing\_time" : "5ms",  
"missing\_time\_in\_millis" : 5,  
"current" : 0  
},  
"search" : {  
"query\_total" : 1726375,  
"query\_time" : "7.7m",  
"query\_time\_in\_millis" : 462631,  
"query\_current" : 0,  
"fetch\_total" : 61663,  
"fetch\_time" : "20.9s",  
"fetch\_time\_in\_millis" : 20955,  
"fetch\_current" : 0  
},  
"cache" : {  
"field\_evictions" : 0,  
"field\_size" : "0b",  
"field\_size\_in\_bytes" : 0,  
"filter\_count" : 5896,  
"filter\_evictions" : 0,  
"filter\_size" : "511.6kb",  
"filter\_size\_in\_bytes" : 523944,  
"bloom\_size" : "22.1kb",  
"bloom\_size\_in\_bytes" : 22640,  
"id\_cache\_size" : "0b",  
"id\_cache\_size\_in\_bytes" : 0  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size" : "0b",  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size" : "0b",  
"total\_size\_in\_bytes" : 0  
},  
"refresh" : {  
"total" : 15,  
"total\_time" : "143ms",  
"total\_time\_in\_millis" : 143  
},  
"flush" : {  
"total" : 25,  
"total\_time" : "3.2s",  
"total\_time\_in\_millis" : 3205  
}  
}  
}  
}  
}

As understand how much I need to allocate memory for elasticsearch and in  
General the description for each of the parameters.

there is a Russian community ?

--  
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:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [February 9, 2013, 6:05pm UTC](https://discuss.elastic.co/t/how-to-increase-memory/10681/2 "2013-02-09T18:05:54Z")

</div>

ES\_HEAP\_SIZE ES\_MAX\_MEM ES\_MIN\_MEM are environment variables. They need to  
be specified on the command line. For example:

ES\_HEAP\_SIZE=4g bin/elasticsearch -f

To get JVM stats, you need to set jvm=true on stats request:

curl -XGET '[http://localhost:9200/\_cluster/nodes/stats?jvm=true&pretty=true](http://localhost:9200/_cluster/nodes/stats?jvm=true&pretty=true)'

To understand how much memory you need, give it as much as you can, put  
some load and monitor "jvm.mem.heap\_used" in the output of the stats  
command above. If this number ever goes and stays above 90%  
of available heap it's typically a good indicator that you need more.

There is a small Russian elasticsearch forum -  
[https://groups.google.com/forum/?fromgroups=#!forum/elasticsearch-ru](https://groups.google.com/forum/?fromgroups=#!forum/elasticsearch-ru)

On Saturday, February 9, 2013 12:57:04 PM UTC-5, Николай Измайлов wrote:

> In continuation of the topic  
> [Constantly falls elasticsearch · Issue #2636 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2636#issuecomment-13332877)
> 
> in continuation of the topic  
> [Constantly falls elasticsearch · Issue #2636 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2636#issuecomment-13332877)  
> On the page  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/setup/installation.html) it  
> is said that it is necessary to increase ES\_HEAP\_SIZE ES\_MAX\_MEM  
> ES\_MIN\_MEM, but I have not found this configuration then  
> /etc/elasticsearch/elasticsearch.yml. Here's my cluster
> 
> {  
> "cluster\_name" : "elasticsearch",  
> "nodes" : {  
> "VPjABUm-REmy24NQ\_AkXDQ" : {  
> "timestamp" : 1360432148849,  
> "name" : "Sin",  
> "transport\_address" : "inet[/ip:9300]",  
> "hostname" : "Ubuntu-1204-precise-64-minimal",  
> "indices" : {  
> "store" : {  
> "size" : "34.6gb",  
> "size\_in\_bytes" : 37221752556,  
> "throttle\_time" : "0s",  
> "throttle\_time\_in\_millis" : 0  
> },  
> "docs" : {  
> "count" : 58480,  
> "deleted" : 4759  
> },  
> "indexing" : {  
> "index\_total" : 20,  
> "index\_time" : "1.7s",  
> "index\_time\_in\_millis" : 1748,  
> "index\_current" : 0,  
> "delete\_total" : 0,  
> "delete\_time" : "0s",  
> "delete\_time\_in\_millis" : 0,  
> "delete\_current" : 0  
> },  
> "get" : {  
> "total" : 2,  
> "time" : "5ms",  
> "time\_in\_millis" : 5,  
> "exists\_total" : 0,  
> "exists\_time" : "0s",  
> "exists\_time\_in\_millis" : 0,  
> "missing\_total" : 2,  
> "missing\_time" : "5ms",  
> "missing\_time\_in\_millis" : 5,  
> "current" : 0  
> },  
> "search" : {  
> "query\_total" : 1726375,  
> "query\_time" : "7.7m",  
> "query\_time\_in\_millis" : 462631,  
> "query\_current" : 0,  
> "fetch\_total" : 61663,  
> "fetch\_time" : "20.9s",  
> "fetch\_time\_in\_millis" : 20955,  
> "fetch\_current" : 0  
> },  
> "cache" : {  
> "field\_evictions" : 0,  
> "field\_size" : "0b",  
> "field\_size\_in\_bytes" : 0,  
> "filter\_count" : 5896,  
> "filter\_evictions" : 0,  
> "filter\_size" : "511.6kb",  
> "filter\_size\_in\_bytes" : 523944,  
> "bloom\_size" : "22.1kb",  
> "bloom\_size\_in\_bytes" : 22640,  
> "id\_cache\_size" : "0b",  
> "id\_cache\_size\_in\_bytes" : 0  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 15,  
> "total\_time" : "143ms",  
> "total\_time\_in\_millis" : 143  
> },  
> "flush" : {  
> "total" : 25,  
> "total\_time" : "3.2s",  
> "total\_time\_in\_millis" : 3205  
> }  
> }  
> }  
> }  
> }
> 
> As understand how much I need to allocate memory for elasticsearch and in  
> General the description for each of the parameters.
> 
> there is a Russian community ?

--  
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:** ![rookie7799](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@rookie7799](https://discuss.elastic.co/u/rookie7799)\
**Post date:** [August 18, 2014, 7:42pm UTC](https://discuss.elastic.co/t/how-to-increase-memory/10681/3 "2014-08-18T19:42:54Z")

</div>

Hello there,

We are having the same exact problem with a really resource hungry query:  
5 nodes with 16GB ES\_HEAP\_SIZE  
1.2 Billion records inside 1 index with 5 shards

Whenever we start running an aggregate query the whole cluster breaks and  
disconnects. Why can't it just not return results and simple give and error  
without actually killing the entire cluster?

Cheers!

On Saturday, February 9, 2013 1:05:54 PM UTC-5, Igor Motov wrote:

> ES\_HEAP\_SIZE ES\_MAX\_MEM ES\_MIN\_MEM are environment variables. They need to  
> be specified on the command line. For example:
> 
> ES\_HEAP\_SIZE=4g bin/elasticsearch -f
> 
> To get JVM stats, you need to set jvm=true on stats request:
> 
> curl -XGET '  
> [http://localhost:9200/\_cluster/nodes/stats?jvm=true&pretty=true](http://localhost:9200/_cluster/nodes/stats?jvm=true&pretty=true)'
> 
> To understand how much memory you need, give it as much as you can, put  
> some load and monitor "jvm.mem.heap\_used" in the output of the stats  
> command above. If this number ever goes and stays above 90%  
> of available heap it's typically a good indicator that you need more.
> 
> There is a small Russian elasticsearch forum -  
> [Redirecting to Google Groups](https://groups.google.com/forum/?fromgroups=#!forum/elasticsearch-ru)
> 
> On Saturday, February 9, 2013 12:57:04 PM UTC-5, Николай Измайлов wrote:
> 
> > In continuation of the topic  
> > [Constantly falls elasticsearch · Issue #2636 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2636#issuecomment-13332877)
> > 
> > in continuation of the topic  
> > [Constantly falls elasticsearch · Issue #2636 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2636#issuecomment-13332877)  
> > On the page  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/setup/installation.html) it  
> > is said that it is necessary to increase ES\_HEAP\_SIZE ES\_MAX\_MEM  
> > ES\_MIN\_MEM, but I have not found this configuration then  
> > /etc/elasticsearch/elasticsearch.yml. Here's my cluster
> > 
> > {  
> > "cluster\_name" : "elasticsearch",  
> > "nodes" : {  
> > "VPjABUm-REmy24NQ\_AkXDQ" : {  
> > "timestamp" : 1360432148849,  
> > "name" : "Sin",  
> > "transport\_address" : "inet[/ip:9300]",  
> > "hostname" : "Ubuntu-1204-precise-64-minimal",  
> > "indices" : {  
> > "store" : {  
> > "size" : "34.6gb",  
> > "size\_in\_bytes" : 37221752556,  
> > "throttle\_time" : "0s",  
> > "throttle\_time\_in\_millis" : 0  
> > },  
> > "docs" : {  
> > "count" : 58480,  
> > "deleted" : 4759  
> > },  
> > "indexing" : {  
> > "index\_total" : 20,  
> > "index\_time" : "1.7s",  
> > "index\_time\_in\_millis" : 1748,  
> > "index\_current" : 0,  
> > "delete\_total" : 0,  
> > "delete\_time" : "0s",  
> > "delete\_time\_in\_millis" : 0,  
> > "delete\_current" : 0  
> > },  
> > "get" : {  
> > "total" : 2,  
> > "time" : "5ms",  
> > "time\_in\_millis" : 5,  
> > "exists\_total" : 0,  
> > "exists\_time" : "0s",  
> > "exists\_time\_in\_millis" : 0,  
> > "missing\_total" : 2,  
> > "missing\_time" : "5ms",  
> > "missing\_time\_in\_millis" : 5,  
> > "current" : 0  
> > },  
> > "search" : {  
> > "query\_total" : 1726375,  
> > "query\_time" : "7.7m",  
> > "query\_time\_in\_millis" : 462631,  
> > "query\_current" : 0,  
> > "fetch\_total" : 61663,  
> > "fetch\_time" : "20.9s",  
> > "fetch\_time\_in\_millis" : 20955,  
> > "fetch\_current" : 0  
> > },  
> > "cache" : {  
> > "field\_evictions" : 0,  
> > "field\_size" : "0b",  
> > "field\_size\_in\_bytes" : 0,  
> > "filter\_count" : 5896,  
> > "filter\_evictions" : 0,  
> > "filter\_size" : "511.6kb",  
> > "filter\_size\_in\_bytes" : 523944,  
> > "bloom\_size" : "22.1kb",  
> > "bloom\_size\_in\_bytes" : 22640,  
> > "id\_cache\_size" : "0b",  
> > "id\_cache\_size\_in\_bytes" : 0  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 15,  
> > "total\_time" : "143ms",  
> > "total\_time\_in\_millis" : 143  
> > },  
> > "flush" : {  
> > "total" : 25,  
> > "total\_time" : "3.2s",  
> > "total\_time\_in\_millis" : 3205  
> > }  
> > }  
> > }  
> > }  
> > }
> > 
> > As understand how much I need to allocate memory for elasticsearch and in  
> > General the description for each of the parameters.
> > 
> > there is a Russian community ?

--  
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/12846c2e-e777-4812-bce2-d6c97a30c352%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/12846c2e-e777-4812-bce2-d6c97a30c352%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [August 18, 2014, 9:48pm UTC](https://discuss.elastic.co/t/how-to-increase-memory/10681/4 "2014-08-18T21:48:54Z")

</div>

What version of ES do you use?

Jörg

On Mon, Aug 18, 2014 at 9:42 PM, rookie7799 [pavelbaranov@gmail.com](mailto:pavelbaranov@gmail.com) wrote:

> Hello there,
> 
> We are having the same exact problem with a really resource hungry query:  
> 5 nodes with 16GB ES\_HEAP\_SIZE  
> 1.2 Billion records inside 1 index with 5 shards
> 
> Whenever we start running an aggregate query the whole cluster breaks and  
> disconnects. Why can't it just not return results and simple give and error  
> without actually killing the entire cluster?
> 
> Cheers!
> 
> On Saturday, February 9, 2013 1:05:54 PM UTC-5, Igor Motov wrote:
> 
> > ES\_HEAP\_SIZE ES\_MAX\_MEM ES\_MIN\_MEM are environment variables. They need  
> > to be specified on the command line. For example:
> > 
> > ES\_HEAP\_SIZE=4g bin/elasticsearch -f
> > 
> > To get JVM stats, you need to set jvm=true on stats request:
> > 
> > curl -XGET '[http://localhost:9200/\_cluster/nodes/stats?jvm=true&](http://localhost:9200/_cluster/nodes/stats?jvm=true&)  
> > pretty=true'
> > 
> > To understand how much memory you need, give it as much as you can, put  
> > some load and monitor "jvm.mem.heap\_used" in the output of the stats  
> > command above. If this number ever goes and stays above 90%  
> > of available heap it's typically a good indicator that you need more.
> > 
> > There is a small Russian elasticsearch forum - [https://groups.google.com/](https://groups.google.com/)  
> > forum/?fromgroups=#!forum/elasticsearch-ru
> > 
> > On Saturday, February 9, 2013 12:57:04 PM UTC-5, Николай Измайлов wrote:
> > 
> > > In continuation of the topic [https://github.com/](https://github.com/)  
> > > elasticsearch/elasticsearch/issues/2636#issuecomment-13332877
> > > 
> > > in continuation of the topic [https://github.com/](https://github.com/)  
> > > elasticsearch/elasticsearch/issues/2636#issuecomment-13332877  
> > > On the page [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/setup/)  
> > > installation.html it is said that it is necessary to increase  
> > > ES\_HEAP\_SIZE ES\_MAX\_MEM ES\_MIN\_MEM, but I have not found this configuration  
> > > then /etc/elasticsearch/elasticsearch.yml. Here's my cluster
> > > 
> > > {  
> > > "cluster\_name" : "elasticsearch",  
> > > "nodes" : {  
> > > "VPjABUm-REmy24NQ\_AkXDQ" : {  
> > > "timestamp" : 1360432148849,  
> > > "name" : "Sin",  
> > > "transport\_address" : "inet[/ip:9300]",  
> > > "hostname" : "Ubuntu-1204-precise-64-minimal",  
> > > "indices" : {  
> > > "store" : {  
> > > "size" : "34.6gb",  
> > > "size\_in\_bytes" : 37221752556,  
> > > "throttle\_time" : "0s",  
> > > "throttle\_time\_in\_millis" : 0  
> > > },  
> > > "docs" : {  
> > > "count" : 58480,  
> > > "deleted" : 4759  
> > > },  
> > > "indexing" : {  
> > > "index\_total" : 20,  
> > > "index\_time" : "1.7s",  
> > > "index\_time\_in\_millis" : 1748,  
> > > "index\_current" : 0,  
> > > "delete\_total" : 0,  
> > > "delete\_time" : "0s",  
> > > "delete\_time\_in\_millis" : 0,  
> > > "delete\_current" : 0  
> > > },  
> > > "get" : {  
> > > "total" : 2,  
> > > "time" : "5ms",  
> > > "time\_in\_millis" : 5,  
> > > "exists\_total" : 0,  
> > > "exists\_time" : "0s",  
> > > "exists\_time\_in\_millis" : 0,  
> > > "missing\_total" : 2,  
> > > "missing\_time" : "5ms",  
> > > "missing\_time\_in\_millis" : 5,  
> > > "current" : 0  
> > > },  
> > > "search" : {  
> > > "query\_total" : 1726375,  
> > > "query\_time" : "7.7m",  
> > > "query\_time\_in\_millis" : 462631,  
> > > "query\_current" : 0,  
> > > "fetch\_total" : 61663,  
> > > "fetch\_time" : "20.9s",  
> > > "fetch\_time\_in\_millis" : 20955,  
> > > "fetch\_current" : 0  
> > > },  
> > > "cache" : {  
> > > "field\_evictions" : 0,  
> > > "field\_size" : "0b",  
> > > "field\_size\_in\_bytes" : 0,  
> > > "filter\_count" : 5896,  
> > > "filter\_evictions" : 0,  
> > > "filter\_size" : "511.6kb",  
> > > "filter\_size\_in\_bytes" : 523944,  
> > > "bloom\_size" : "22.1kb",  
> > > "bloom\_size\_in\_bytes" : 22640,  
> > > "id\_cache\_size" : "0b",  
> > > "id\_cache\_size\_in\_bytes" : 0  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 15,  
> > > "total\_time" : "143ms",  
> > > "total\_time\_in\_millis" : 143  
> > > },  
> > > "flush" : {  
> > > "total" : 25,  
> > > "total\_time" : "3.2s",  
> > > "total\_time\_in\_millis" : 3205  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }
> > > 
> > > As understand how much I need to allocate memory for elasticsearch and  
> > > in General the description for each of the parameters.
> > > 
> > > there is a Russian community ?
> > > 
> > > --  
> > > 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/12846c2e-e777-4812-bce2-d6c97a30c352%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/12846c2e-e777-4812-bce2-d6c97a30c352%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/12846c2e-e777-4812-bce2-d6c97a30c352%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/12846c2e-e777-4812-bce2-d6c97a30c352%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAKdsXoEiFy9HUU4%2BCD3BGh9EjmShi2hNiWHZ0n\_N9daVkr\_WTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEiFy9HUU4%2BCD3BGh9EjmShi2hNiWHZ0n_N9daVkr_WTw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![rookie7799](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@rookie7799](https://discuss.elastic.co/u/rookie7799)\
**Post date:** [August 18, 2014, 10:22pm UTC](https://discuss.elastic.co/t/how-to-increase-memory/10681/5 "2014-08-18T22:22:41Z")

</div>

Hi, it's 1.3.2

On Monday, August 18, 2014 5:49:03 PM UTC-4, Jörg Prante wrote:

> What version of ES do you use?
> 
> Jörg
> 
> On Mon, Aug 18, 2014 at 9:42 PM, rookie7799 \<[pavelb...@gmail.com](mailto:pavelb...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Hello there,
> > 
> > We are having the same exact problem with a really resource hungry query:  
> > 5 nodes with 16GB ES\_HEAP\_SIZE  
> > 1.2 Billion records inside 1 index with 5 shards
> > 
> > Whenever we start running an aggregate query the whole cluster breaks and  
> > disconnects. Why can't it just not return results and simple give and error  
> > without actually killing the entire cluster?
> > 
> > Cheers!
> > 
> > On Saturday, February 9, 2013 1:05:54 PM UTC-5, Igor Motov wrote:
> > 
> > > ES\_HEAP\_SIZE ES\_MAX\_MEM ES\_MIN\_MEM are environment variables. They need  
> > > to be specified on the command line. For example:
> > > 
> > > ES\_HEAP\_SIZE=4g bin/elasticsearch -f
> > > 
> > > To get JVM stats, you need to set jvm=true on stats request:
> > > 
> > > curl -XGET '[http://localhost:9200/\_cluster/nodes/stats?jvm=true&](http://localhost:9200/_cluster/nodes/stats?jvm=true&)  
> > > pretty=true'
> > > 
> > > To understand how much memory you need, give it as much as you can, put  
> > > some load and monitor "jvm.mem.heap\_used" in the output of the stats  
> > > command above. If this number ever goes and stays above 90%  
> > > of available heap it's typically a good indicator that you need more.
> > > 
> > > There is a small Russian elasticsearch forum -  
> > > [Redirecting to Google Groups](https://groups.google.com/forum/?fromgroups=#!forum/elasticsearch-ru)
> > > 
> > > On Saturday, February 9, 2013 12:57:04 PM UTC-5, Николай Измайлов wrote:
> > > 
> > > > In continuation of the topic [https://github.com/](https://github.com/)  
> > > > elasticsearch/elasticsearch/issues/2636#issuecomment-13332877
> > > > 
> > > > in continuation of the topic [https://github.com/](https://github.com/)  
> > > > elasticsearch/elasticsearch/issues/2636#issuecomment-13332877  
> > > > On the page [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/setup/)  
> > > > installation.html it is said that it is necessary to increase  
> > > > ES\_HEAP\_SIZE ES\_MAX\_MEM ES\_MIN\_MEM, but I have not found this configuration  
> > > > then /etc/elasticsearch/elasticsearch.yml. Here's my cluster
> > > > 
> > > > {  
> > > > "cluster\_name" : "elasticsearch",  
> > > > "nodes" : {  
> > > > "VPjABUm-REmy24NQ\_AkXDQ" : {  
> > > > "timestamp" : 1360432148849,  
> > > > "name" : "Sin",  
> > > > "transport\_address" : "inet[/ip:9300]",  
> > > > "hostname" : "Ubuntu-1204-precise-64-minimal",  
> > > > "indices" : {  
> > > > "store" : {  
> > > > "size" : "34.6gb",  
> > > > "size\_in\_bytes" : 37221752556,  
> > > > "throttle\_time" : "0s",  
> > > > "throttle\_time\_in\_millis" : 0  
> > > > },  
> > > > "docs" : {  
> > > > "count" : 58480,  
> > > > "deleted" : 4759  
> > > > },  
> > > > "indexing" : {  
> > > > "index\_total" : 20,  
> > > > "index\_time" : "1.7s",  
> > > > "index\_time\_in\_millis" : 1748,  
> > > > "index\_current" : 0,  
> > > > "delete\_total" : 0,  
> > > > "delete\_time" : "0s",  
> > > > "delete\_time\_in\_millis" : 0,  
> > > > "delete\_current" : 0  
> > > > },  
> > > > "get" : {  
> > > > "total" : 2,  
> > > > "time" : "5ms",  
> > > > "time\_in\_millis" : 5,  
> > > > "exists\_total" : 0,  
> > > > "exists\_time" : "0s",  
> > > > "exists\_time\_in\_millis" : 0,  
> > > > "missing\_total" : 2,  
> > > > "missing\_time" : "5ms",  
> > > > "missing\_time\_in\_millis" : 5,  
> > > > "current" : 0  
> > > > },  
> > > > "search" : {  
> > > > "query\_total" : 1726375,  
> > > > "query\_time" : "7.7m",  
> > > > "query\_time\_in\_millis" : 462631,  
> > > > "query\_current" : 0,  
> > > > "fetch\_total" : 61663,  
> > > > "fetch\_time" : "20.9s",  
> > > > "fetch\_time\_in\_millis" : 20955,  
> > > > "fetch\_current" : 0  
> > > > },  
> > > > "cache" : {  
> > > > "field\_evictions" : 0,  
> > > > "field\_size" : "0b",  
> > > > "field\_size\_in\_bytes" : 0,  
> > > > "filter\_count" : 5896,  
> > > > "filter\_evictions" : 0,  
> > > > "filter\_size" : "511.6kb",  
> > > > "filter\_size\_in\_bytes" : 523944,  
> > > > "bloom\_size" : "22.1kb",  
> > > > "bloom\_size\_in\_bytes" : 22640,  
> > > > "id\_cache\_size" : "0b",  
> > > > "id\_cache\_size\_in\_bytes" : 0  
> > > > },  
> > > > "merges" : {  
> > > > "current" : 0,  
> > > > "current\_docs" : 0,  
> > > > "current\_size" : "0b",  
> > > > "current\_size\_in\_bytes" : 0,  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0,  
> > > > "total\_docs" : 0,  
> > > > "total\_size" : "0b",  
> > > > "total\_size\_in\_bytes" : 0  
> > > > },  
> > > > "refresh" : {  
> > > > "total" : 15,  
> > > > "total\_time" : "143ms",  
> > > > "total\_time\_in\_millis" : 143  
> > > > },  
> > > > "flush" : {  
> > > > "total" : 25,  
> > > > "total\_time" : "3.2s",  
> > > > "total\_time\_in\_millis" : 3205  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > As understand how much I need to allocate memory for elasticsearch and  
> > > > in General the description for each of the parameters.
> > > > 
> > > > there is a Russian community ?
> > > > 
> > > > --  
> > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/12846c2e-e777-4812-bce2-d6c97a30c352%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/12846c2e-e777-4812-bce2-d6c97a30c352%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/12846c2e-e777-4812-bce2-d6c97a30c352%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/12846c2e-e777-4812-bce2-d6c97a30c352%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/c9494dd2-93f6-41e1-a655-b09e999bdc92%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c9494dd2-93f6-41e1-a655-b09e999bdc92%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:07am UTC](https://discuss.elastic.co/t/how-to-increase-memory/10681/6 "2017-07-06T01:07:50Z")

</div>


