# Set Kibana Memory

**URL:** https://discuss.elastic.co/t/set-kibana-memory/335472
**Category:** Kibana
**Created:** [June 7, 2023, 7:13pm UTC](https://discuss.elastic.co/t/set-kibana-memory/335472 "2023-06-07T19:13:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kaismax](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@kaismax](https://discuss.elastic.co/u/kaismax)
#### Post date: [June 7, 2023, 7:13pm UTC](https://discuss.elastic.co/t/set-kibana-memory/335472/1 "2023-06-07T19:13:47Z")

</div>

in kibana 7.17.7, How I can set the Memory for kibana, I edited node.options and set to --max-old-space-size=8192 but when i go "stack monitoring", i found that kibana still showing under "Memory Usage :1.9 GB / 4.0 GB"

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [June 7, 2023, 7:43pm UTC](https://discuss.elastic.co/t/set-kibana-memory/335472/2 "2023-06-07T19:43:10Z")

</div>

Welcome to the community kaismax

Have you tried [this](https://discuss.elastic.co/t/kibana-kibanas-memory-limit-wont-change-even-to-default/270197/5)?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [June 7, 2023, 7:46pm UTC](https://discuss.elastic.co/t/set-kibana-memory/335472/3 "2023-06-07T19:46:54Z")

</div>

I had the same [issue](https://discuss.elastic.co/t/how-to-increase-kibana-memory/297204/4) a couple of months ago, even opened a ticket with the support but they couldn't reproduce the issue, so there was no solution.

What I needed to do when I was using 7.17 was to edit the Kibana startup script and put the setting directly on the script, the `--max-old-space-size` was hardcoded in the startup script.

---

<div class="post-metadata">

### Author: ![kaismax](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@kaismax](https://discuss.elastic.co/u/kaismax)
#### Post date: [June 7, 2023, 7:50pm UTC](https://discuss.elastic.co/t/set-kibana-memory/335472/4 "2023-06-07T19:50:19Z")

</div>

Wow Worked..... thanks @Rios  
 ![1](https://us1.discourse-cdn.com/elastic/original/3X/1/b/1bc44408579f99c3dbfacc41ea8b7796a3a1a6d1.png)

 ![2](https://us1.discourse-cdn.com/elastic/original/3X/8/d/8de201c7ae45a167e578204b24be3978fd8eb1aa.png)

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [June 7, 2023, 7:54pm UTC](https://discuss.elastic.co/t/set-kibana-memory/335472/5 "2023-06-07T19:54:57Z")

</div>

Yeah, this was my first solution when I had this issue, changed the `NODE_OPTIONS` into:

> NODE\_OPTIONS="--no-warnings --max-http-header-size=65536 --tls-min-v1.0 $KBN\_NODE\_OPTS $NODE\_OPTIONS" NODE\_ENV=production exec "${NODE}" --max-old-space-size=4096 "${DIR}/src/cli/dist" ${@}

After a couple more of tests, this also worked:

> NODE\_OPTIONS="--no-warnings --max-http-header-size=65536 --tls-min-v1.0 $NODE\_OPTIONS" NODE\_ENV=production exec "${NODE}" $KBN\_NODE\_OPTS "${DIR}/src/cli/dist" ${@}

Just moved the `$KBN_NODE_OPTS` then it correctly sourced the value from the `node.options` file.

---

<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, 2023, 7:54pm UTC](https://discuss.elastic.co/t/set-kibana-memory/335472/6 "2023-07-05T19:54:57Z")

</div>

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