# Running ES 5 on a low-memory server for testing

**URL:** <https://discuss.elastic.co/t/running-es-5-on-a-low-memory-server-for-testing/65336>\
**Category:** Elasticsearch\
**Created:** [November 8, 2016, 10:37am UTC](https://discuss.elastic.co/t/running-es-5-on-a-low-memory-server-for-testing/65336 "2016-11-08T10:37:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cylindric](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cylindric/32/5660_2.png) [@Cylindric](https://discuss.elastic.co/u/Cylindric)\
**Post date:** [November 8, 2016, 10:37am UTC](https://discuss.elastic.co/t/running-es-5-on-a-low-memory-server-for-testing/65336/1 "2016-11-08T10:37:33Z")

</div>

Hi folks. I'm seeing if I can get ES5 set up in a very limited environment (2Gb RAM)

I have a clean install of Ubuntu 16.04, and have installed ES 5.0.0.  
I have configured ES to start with systemd.  
In /etc/elasticsearch/elasticsearch.yml I have set `bootstrap.memory_lock: false`  
In /etc/elasticsearch/jvm.options I have set `-Xms1g` and `-Xmx1g`  
In /etc/default/elasticsearch I have set `MAX_LOCKED_MEMORY=1g`

When I start the service, the elasticsearch log shows some errors seemingly about memory:

> [2016-11-08T10:22:52,717][INFO][o.e.n.Node] [linode1] initializing ...  
> [2016-11-08T10:22:52,867][INFO][o.e.e.NodeEnvironment] [linode1] using [1] data paths, mounts [[/ (/dev/root)]], net usable\_space [21gb], net total\_space [23.4gb], spins? [possibly], types [ext4]  
> [2016-11-08T10:22:52,868][INFO][o.e.e.NodeEnvironment] [linode1] heap size [1015.6mb], compressed ordinary object pointers [true]  
> [2016-11-08T10:22:52,872][INFO][o.e.n.Node] [linode1] version[5.0.0], pid[24456], build[253032b/2016-10-26T05:11:34.737Z], OS[Linux/4.8.3-x86\_64-linode76/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0\_111/25.111-b14]  
> [2016-11-08T10:22:55,746][INFO][o.e.p.PluginsService] [linode1] loaded module [aggs-matrix-stats]  
> [2016-11-08T10:22:55,747][INFO][o.e.p.PluginsService] [linode1] loaded module [ingest-common]  
> [2016-11-08T10:22:55,747][INFO][o.e.p.PluginsService] [linode1] loaded module [lang-expression]  
> [2016-11-08T10:22:55,747][INFO][o.e.p.PluginsService] [linode1] loaded module [lang-groovy]  
> [2016-11-08T10:22:55,747][INFO][o.e.p.PluginsService] [linode1] loaded module [lang-mustache]  
> [2016-11-08T10:22:55,748][INFO][o.e.p.PluginsService] [linode1] loaded module [lang-painless]  
> [2016-11-08T10:22:55,748][INFO][o.e.p.PluginsService] [linode1] loaded module [percolator]  
> [2016-11-08T10:22:55,748][INFO][o.e.p.PluginsService] [linode1] loaded module [reindex]  
> [2016-11-08T10:22:55,749][INFO][o.e.p.PluginsService] [linode1] loaded module [transport-netty3]  
> [2016-11-08T10:22:55,749][INFO][o.e.p.PluginsService] [linode1] loaded module [transport-netty4]  
> [2016-11-08T10:22:55,750][INFO][o.e.p.PluginsService] [linode1] no plugins loaded  
> [2016-11-08T10:23:02,479][INFO][o.e.n.Node] [linode1] initialized  
> [2016-11-08T10:23:02,481][INFO][o.e.n.Node] [linode1] starting ...  
> [2016-11-08T10:23:03,015][INFO][o.e.t.TransportService] [linode1] publish\_address {x.x.x.x:9300}, bound\_addresses {x.x.x.x:9300}  
> [2016-11-08T10:23:03,023][INFO][o.e.b.BootstrapCheck] [linode1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks  
> **[2016-11-08T10:23:03,034][ERROR][o.e.b.Bootstrap] [linode1] node validation exception**  
> **bootstrap checks failed**  
> **max virtual memory areas vm.max\_map\_count [65530] likely too low, increase to at least [262144]**  
> [2016-11-08T10:23:03,041][INFO][o.e.n.Node] [linode1] stopping ...  
> [2016-11-08T10:23:03,082][INFO][o.e.n.Node] [linode1] stopped  
> [2016-11-08T10:23:03,083][INFO][o.e.n.Node] [linode1] closing ...  
> [2016-11-08T10:23:03,133][INFO][o.e.n.Node] [linode1] closed

I realise this will be slow and swappy, but I'm going to be pushing something like 200 records _per day_ into this thing, so I doubt that will be a problem.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 8, 2016, 12:15pm UTC](https://discuss.elastic.co/t/running-es-5-on-a-low-memory-server-for-testing/65336/2 "2016-11-08T12:15:19Z")

</div>

Read

- [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/setup.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/setup.html)
- [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/bootstrap-checks.html)
- [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/\_maximum\_map\_count\_check.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/_maximum_map_count_check.html)

---

<div class="post-metadata">

**Author:** ![Cylindric](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cylindric/32/5660_2.png) [@Cylindric](https://discuss.elastic.co/u/Cylindric)\
**Post date:** [November 8, 2016, 2:24pm UTC](https://discuss.elastic.co/t/running-es-5-on-a-low-memory-server-for-testing/65336/3 "2016-11-08T14:24:18Z")

</div>

Aah, it's the last one of those that I missed! Thank you.

> sysctl vm.max\_map\_count=262144

---

<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:** [December 6, 2016, 2:24pm UTC](https://discuss.elastic.co/t/running-es-5-on-a-low-memory-server-for-testing/65336/4 "2016-12-06T14:24:19Z")

</div>

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