Minimum JVM heap size

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.

1 Like

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