# Resource usage / Elasticsearch on virtual machine / single node

**URL:** <https://discuss.elastic.co/t/resource-usage-elasticsearch-on-virtual-machine-single-node/355554>\
**Category:** Elasticsearch\
**Created:** [March 17, 2024, 9:51am UTC](https://discuss.elastic.co/t/resource-usage-elasticsearch-on-virtual-machine-single-node/355554 "2024-03-17T09:51:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrankyR](https://avatars.discourse-cdn.com/v4/letter/f/e56c9b/32.png) [@FrankyR](https://discuss.elastic.co/u/FrankyR)\
**Post date:** [March 17, 2024, 9:51am UTC](https://discuss.elastic.co/t/resource-usage-elasticsearch-on-virtual-machine-single-node/355554/1 "2024-03-17T09:51:52Z")

</div>

Dear community,

I am trying to run Elasticsearch for a very small task ( I need to only visualize dmarc data with a couple of records a day so far).

I configured single node in elasticsearch.yml by:

```auto
network.host: 127.0.0.1
discovery.type: single-node

```

The virtual machine however stops being responsive once elasticsearch is started (htops reveils that it consumes very high memory, about 10GB). How could I configure the tool to be less demainding in memory, since the only thing I really need it to do is to work with my dmarc reports, which should be a very tiny task...

Thank you for your help.

Franky.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 18, 2024, 2:26pm UTC](https://discuss.elastic.co/t/resource-usage-elasticsearch-on-virtual-machine-single-node/355554/2 "2024-03-18T14:26:13Z")

</div>

Hi @FrankyR

What size VM Are you putting elastic on?

What version are you running?

I ask because by design it'll try to claim half the RAM That is because elastic is meant to be run on a VM by itself.

But you can manually set the amount of JVM and you could make it small like 1 gb or 2 GB.

Please read the docs here or make sure you use the correct version of the docs

> **[Advanced configuration | Elasticsearch Guide \[8.12\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/advanced-configuration.html#set-jvm-heap-size)**

---

<div class="post-metadata">

**Author:** ![FrankyR](https://avatars.discourse-cdn.com/v4/letter/f/e56c9b/32.png) [@FrankyR](https://discuss.elastic.co/u/FrankyR)\
**Post date:** [March 19, 2024, 10:51am UTC](https://discuss.elastic.co/t/resource-usage-elasticsearch-on-virtual-machine-single-node/355554/3 "2024-03-19T10:51:52Z")

</div>

Hi @stephenb ,  
Thanks for the answer. I am running elastic in a LXD container with about 10GB RAM configured afaik. Thanks for sharing the docs. I will have a proper look and investigate.

---

<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:** [April 16, 2024, 10:52am UTC](https://discuss.elastic.co/t/resource-usage-elasticsearch-on-virtual-machine-single-node/355554/4 "2024-04-16T10:52:04Z")

</div>

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