# Java heap adjustments

**URL:** <https://discuss.elastic.co/t/java-heap-adjustments/200636>\
**Category:** Elasticsearch\
**Created:** [September 23, 2019, 7:32am UTC](https://discuss.elastic.co/t/java-heap-adjustments/200636 "2019-09-23T07:32:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theaxe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theaxe/32/53573_2.png) [@theaxe](https://discuss.elastic.co/u/theaxe)\
**Post date:** [September 23, 2019, 7:32am UTC](https://discuss.elastic.co/t/java-heap-adjustments/200636/1 "2019-09-23T07:32:54Z")

</div>

Hi,  
I am using es 2.4 and trying to adjust the java heap

I have set the `jvm.options` in `/etc/elasticearch/` both min and max to `10g`, also in `etc/init.d/elasticsearch` I updated the value of `ES_HEAP_SIZE` to `10g`, still the memory that's utilised by es is not what I set, I dont know where the values get read

please shed some light

Thanks

---

<div class="post-metadata">

**Author:** ![theaxe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theaxe/32/53573_2.png) [@theaxe](https://discuss.elastic.co/u/theaxe)\
**Post date:** [September 24, 2019, 8:46am UTC](https://discuss.elastic.co/t/java-heap-adjustments/200636/2 "2019-09-24T08:46:34Z")

</div>

Okay, just in case someone else is stuck where I wasted 1 full precious day

The settings for all the environment variables are in `/etc/default/elasticsearch`

And reading this can be helpful too if you want to setup a cluster:

> **[How To Set Up a Production Elasticsearch Cluster on Ubuntu 14.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-production-elasticsearch-cluster-on-ubuntu-14-04)**
>
> Elasticsearch is a popular open source search server that is used for real-time distributed search and analysis of data. When used for anything other than development, Elasticsearch should be deployed across multiple servers as a cluster, for the...

good luck to all.

---

<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:** [October 22, 2019, 8:46am UTC](https://discuss.elastic.co/t/java-heap-adjustments/200636/3 "2019-10-22T08:46:34Z")

</div>

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