# Ardor node big memory usage

**URL:** <https://talk.jelurida.com/t/ardor-node-big-memory-usage/544>\
**Category:** Ardor and Nxt Wallet Users\
**Created:** [14 October 2021 13:22 UTC](https://talk.jelurida.com/t/ardor-node-big-memory-usage/544 "2021-10-14T13:22:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulito](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/p/e19adc/32.png) [@paulito](https://talk.jelurida.com/u/paulito)\
**Post date:** [14 October 2021 13:22 UTC](https://talk.jelurida.com/t/ardor-node-big-memory-usage/544/1 "2021-10-14T13:22:52Z")

</div>

I run a node on Debian 11 and it uses 9 GB of RAM. That's quite a lot.  
Can I lower that somehow?  
Thanks

---

<div class="post-metadata">

**Author:** ![sergi](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sergi/32/21_2.png) [@sergi](https://talk.jelurida.com/u/sergi)\
**Post date:** [14 October 2021 14:13 UTC](https://talk.jelurida.com/t/ardor-node-big-memory-usage/544/2 "2021-10-14T14:13:02Z")

</div>

Recent Java VMs on 64 bit hardware default to use a significant amount of the total memory available. A quarter of the total is not uncommon. You can control the amount allocated to your node by adding `-Xmx2G` to the java command line to limit that to 2 GB for example.

An easy way to do that is create a `setenv.sh` file on the installation directory, then add an environment variable `ARDOR_JVM_OPTS` with the desired flags. Following the example:

`ARDOR_JVM_OPTS=-Xmx2G`

This file will be picked up when starting the node using `run.sh`, for example when running `./run.sh --daemon`.

---

<div class="post-metadata">

**Author:** ![paulito](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/p/e19adc/32.png) [@paulito](https://talk.jelurida.com/u/paulito)\
**Post date:** [14 October 2021 19:42 UTC](https://talk.jelurida.com/t/ardor-node-big-memory-usage/544/3 "2021-10-14T19:42:52Z")

</div>

Yes, that seems to work.  
Is there some advantage to allocate more RAM?  
Thanks

---

<div class="post-metadata">

**Author:** ![sergi](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sergi/32/21_2.png) [@sergi](https://talk.jelurida.com/u/sergi)\
**Post date:** [15 October 2021 05:22 UTC](https://talk.jelurida.com/t/ardor-node-big-memory-usage/544/4 "2021-10-15T05:22:50Z")

</div>

For a normal usage not really.

---

<div class="post-metadata">

**Author:** ![KPho](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/k/8491ac/32.png) [@KPho](https://talk.jelurida.com/u/KPho)\
**Post date:** [19 October 2021 22:14 UTC](https://talk.jelurida.com/t/ardor-node-big-memory-usage/544/5 "2021-10-19T22:14:22Z")

</div>

What mean about normal usage?  
If use ardor node as dapp server, it has advantage to allocate more RAM?

---

<div class="post-metadata">

**Author:** ![sergi](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sergi/32/21_2.png) [@sergi](https://talk.jelurida.com/u/sergi)\
**Post date:** [20 October 2021 06:01 UTC](https://talk.jelurida.com/t/ardor-node-big-memory-usage/544/6 "2021-10-20T06:01:24Z")

</div>

If you change some configuration or run specific contracts or add-ons you might benefit or even need more RAM.

For a regular, default installation, 2 GB is more than enough.
