# Is it possible to run elastic on 1 GB of RAM for testing purposes?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-run-elastic-on-1-gb-of-ram-for-testing-purposes/64594>\
**Category:** Elasticsearch\
**Created:** [November 1, 2016, 5:10pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-elastic-on-1-gb-of-ram-for-testing-purposes/64594 "2016-11-01T17:10:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmoxam](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mmoxam](https://discuss.elastic.co/u/mmoxam)\
**Post date:** [November 1, 2016, 5:10pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-elastic-on-1-gb-of-ram-for-testing-purposes/64594/1 "2016-11-01T17:10:58Z")

</div>

I have a dev box with low memory and so far I've been unable to start elastic search.  
Is there a way to lower the heap memory required and still be functional for dev purposes?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [November 1, 2016, 5:31pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-elastic-on-1-gb-of-ram-for-testing-purposes/64594/2 "2016-11-01T17:31:08Z")

</div>

You can lower the heap elasticsearch allocates in the jvm.options file. If  
you use the rpm or deb it is in /etc/elasticsearch. Find the -Xms and -Xmx  
lines and make them -Xms256mb and -Xmx256mb. Any lower than that and I  
expect things to not work so well. Any higher than that and you are really  
starving the disk cache.

---

<div class="post-metadata">

**Author:** ![mmoxam](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mmoxam](https://discuss.elastic.co/u/mmoxam)\
**Post date:** [November 1, 2016, 6:41pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-elastic-on-1-gb-of-ram-for-testing-purposes/64594/3 "2016-11-01T18:41:18Z")

</div>

Thanks I tried that and it at least didn't get killed immediately. Still didn't get it fully started I think I might need to stop some other running applications and free up some swap space.

Either way though thanks for the solution it does work I just have too many things running on my Dev box.

---

<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 5, 2017, 10:07pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-elastic-on-1-gb-of-ram-for-testing-purposes/64594/4 "2017-07-05T22:07:45Z")

</div>


