# Minimum JVM heap size

**URL:** https://discuss.elastic.co/t/minimum-jvm-heap-size/72564
**Category:** Elasticsearch
**Created:** [January 24, 2017, 3:47am UTC](https://discuss.elastic.co/t/minimum-jvm-heap-size/72564 "2017-01-24T03:47:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![peterbe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peterbe/32/14836_2.png) [@peterbe](https://discuss.elastic.co/u/peterbe)
#### Post date: [January 24, 2017, 3:47am UTC](https://discuss.elastic.co/t/minimum-jvm-heap-size/72564/1 "2017-01-24T03:47:02Z")

</div>

I have once ES 2.4.1 instance on one Digital Ocean server. It holds about ~2M documents. Quite large.  
It uses, at the time of writing, 546Mb of memory. No tuning done. Just 1 shard.

In other project I have ES 5.1.1. Also on Digital Ocean. This project holds about 10,000 documents. All smallish.  
The default setting in `/etc/elasticsearch/jvm.options` was `-Xms2g` and `-Xmx2g`. **That ate my server!**.

Basically, how do I figure out what my **minimum heap size** can be for this server?

I guess I can try with `-Xms100m` and see how it goes but it would be nice if there were practical and "scientific" guides to this.

---

<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: [February 21, 2017, 3:47am UTC](https://discuss.elastic.co/t/minimum-jvm-heap-size/72564/2 "2017-02-21T03:47:22Z")

</div>

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