# Kibana RAM allocation

**URL:** https://discuss.elastic.co/t/kibana-ram-allocation/265286
**Category:** Kibana
**Created:** [February 24, 2021, 7:36am UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286 "2021-02-24T07:36:58Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Farid\_N](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farid_n/32/74144_2.png) [@Farid\_N](https://discuss.elastic.co/u/Farid_N)
#### Post date: [February 24, 2021, 7:36am UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286/1 "2021-02-24T07:36:58Z")

</div>

Hi there

Despite of 8G RAM, my Kibana uses only 1G of RAM...  
How can I allocate more RAM to Kibana?

What should I write in `kibana.yml` to determine more RAM for Kibana?

---

<div class="post-metadata">

### Author: ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)
#### Post date: [February 24, 2021, 7:41am UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286/2 "2021-02-24T07:41:39Z")

</div>

Hello Farid,

Did you have a look at this Kibana documentation: [Use Kibana in a production environment | Kibana Guide [8.11] | Elastic](https://www.elastic.co/guide/en/kibana/current/production.html#memory) ?

> Kibana has a default maximum memory limit of 1.4 GB, and in most cases, we recommend leaving this unconfigured. In some scenarios, such as large reporting jobs, it may make sense to tweak limits to meet more specific requirements.
> 
> You can modify this limit by setting `--max-old-space-size` in the `node.options` config file that can be found inside `kibana/config` folder or any other configured with the environment variable `KBN_PATH_CONF` (for example in debian based system would be `/etc/kibana` ).  
> The option accepts a limit in MB:
> 
> --max-old-space-size=2048

Best regards  
Wolfram

---

<div class="post-metadata">

### Author: ![Farid\_N](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farid_n/32/74144_2.png) [@Farid\_N](https://discuss.elastic.co/u/Farid_N)
#### Post date: [February 24, 2021, 10:46am UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286/3 "2021-02-24T10:46:39Z")

</div>

Thanks for your response, but unfortunately I can not find any `node.options` that can be found inside `kibana/config`...!!

I have only a config file in the path `/etc/kibana` which is `kibana.yml`

Could you please explain more where is `node.options` ?

---

<div class="post-metadata">

### Author: ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)
#### Post date: [February 24, 2021, 11:07am UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286/4 "2021-02-24T11:07:32Z")

</div>

Hello Farid,

Maybe you should create the file in `/etc/kibana`. I am using the zipped version of kibana which contains the file but it is empty containing only comments:

```auto
## Node command line options
## See `node --help` and `node --v8-options` for available options
## Please note you should specify one option per line

## max size of old space in megabytes
#--max-old-space-size=4096

```

Best regards  
Wolfram

---

<div class="post-metadata">

### Author: ![Farid\_N](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farid_n/32/74144_2.png) [@Farid\_N](https://discuss.elastic.co/u/Farid_N)
#### Post date: [February 24, 2021, 11:24am UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286/5 "2021-02-24T11:24:13Z")

</div>

Great... Thank you so much.  
And if I create a file `node.options` and write `--max-old-space-size=4096` that is enough?  
Then restart the kibana?  
Do I need to do something else?!?

---

<div class="post-metadata">

### Author: ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)
#### Post date: [February 24, 2021, 11:25am UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286/6 "2021-02-24T11:25:31Z")

</div>

I haven't tried it but I think this would be all.

---

<div class="post-metadata">

### Author: ![Farid\_N](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farid_n/32/74144_2.png) [@Farid\_N](https://discuss.elastic.co/u/Farid_N)
#### Post date: [February 24, 2021, 11:38am UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286/7 "2021-02-24T11:38:49Z")

</div>

Thank you so much...

---

<div class="post-metadata">

### Author: ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)
#### Post date: [February 24, 2021, 12:29pm UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286/8 "2021-02-24T12:29:43Z")

</div>

You can also edit `Kibana.bat` or `kibana.sh` script that run kibana ?  
There is an option there for that `NODE_OPTIONS`  
`node.options` i guess is only in latest versions of Kibana

---

<div class="post-metadata">

### Author: ![Farid\_N](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farid_n/32/74144_2.png) [@Farid\_N](https://discuss.elastic.co/u/Farid_N)
#### Post date: [February 24, 2021, 2:05pm UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286/9 "2021-02-24T14:05:19Z")

</div>

Thanks for your response  
Unfortunately my Kibana is not the latest version...  
So how can I edit `Kibana.bat` or `kibana.sh` ?

I have already built `node.options` and set `--max-old-space-size=4096` but I want to check is it working or not!!!

---

<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: [March 24, 2021, 2:05pm UTC](https://discuss.elastic.co/t/kibana-ram-allocation/265286/10 "2021-03-24T14:05:27Z")

</div>

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