# Kibana 4.2 server memory usage

**URL:** <https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575>\
**Category:** Kibana\
**Created:** [November 2, 2015, 11:00pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575 "2015-11-02T23:00:11Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![PSi\_AU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/psi_au/32/5617_2.png) [@PSi\_AU](https://discuss.elastic.co/u/PSi_AU)\
**Post date:** [November 2, 2015, 11:00pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/1 "2015-11-02T23:00:11Z")

</div>

Is anyone else seeing insane memory growth of the Kibana 4.2 node process serverside? I restarted it before going to bed where it starts at just over 100MB, left it going overnight without touching the browser side at all and it's grown to over 500MB already.

Running on Debian 7.9

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [November 5, 2015, 4:19am UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/2 "2015-11-05T04:19:42Z")

</div>

We recently fixed some [listener leaks](https://github.com/elastic/kibana/pull/5185), but there could be more. Some users have reported seeing memory leaks in 4.2, but that hasn't been reproduced on our side yet: [https://github.com/elastic/kibana/issues/5170](https://github.com/elastic/kibana/issues/5170)

What is the server doing? Are you running a dashboard that is frequently refreshing? Feel free to report more details in the issue I linked above or file a new issue, if you feel your problem is different.

---

<div class="post-metadata">

**Author:** ![PSi\_AU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/psi_au/32/5617_2.png) [@PSi\_AU](https://discuss.elastic.co/u/PSi_AU)\
**Post date:** [November 5, 2015, 4:33am UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/3 "2015-11-05T04:33:14Z")

</div>

During the test the server was doing absolutely nothing at all. I left it overnight, without touching any dashboards in Kibana, and yet memory grows.

---

<div class="post-metadata">

**Author:** ![jraby](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jraby](https://discuss.elastic.co/u/jraby)\
**Post date:** [November 6, 2015, 1:04pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/4 "2015-11-06T13:04:05Z")

</div>

for the record I'm seeing the same thing, Kibana 4.2 had been running for 4-5 days and its memory usage was at ~1GB, upon restarting it sits at ~100mb.

There was not much 'dashboard activity', but I have been running a few queries in 'discover' over the past few days.

---

<div class="post-metadata">

**Author:** ![Michael\_Josten](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@Michael\_Josten](https://discuss.elastic.co/u/Michael_Josten)\
**Post date:** [December 3, 2015, 9:04am UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/5 "2015-12-03T09:04:55Z")

</div>

I also noticed increasing memory usage in both kibana 4.2 and a kibana 4.3 installation on ubuntu server 14.04.  
Kibana gets proxied through ngnix server with SSL encryption. My workaround ( for the moment ) was to restart  
kibana every 8 hours, which resets memory usage to the point where is has been in version 4.1.  
After aprox. 8 hours memory usage grows from 100 mb to 600 mb. The downside is there is lots of ruckus after kibana got restarted with reports of failed visualisations, bad gateways and connection errors that tend to stay  
if you don't reset your browser session.

---

<div class="post-metadata">

**Author:** ![thomas.dotreppe](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@thomas.dotreppe](https://discuss.elastic.co/u/thomas.dotreppe)\
**Post date:** [December 21, 2015, 10:57pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/6 "2015-12-21T22:57:28Z")

</div>

Same here using Kibana 4.3. It grows quite a bit. On one system, it reached 1Gb (and I don't think anybody ever connected to it).

Restarting it drops the memory usage back to 100Mb.

---

<div class="post-metadata">

**Author:** ![Khalah\_Jones\_Golden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khalah_jones_golden/32/7169_2.png) [@Khalah\_Jones\_Golden](https://discuss.elastic.co/u/Khalah_Jones_Golden)\
**Post date:** [December 21, 2015, 11:01pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/7 "2015-12-21T23:01:02Z")

</div>

What systems are you experiencing this on?

---

<div class="post-metadata">

**Author:** ![thomas.dotreppe](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@thomas.dotreppe](https://discuss.elastic.co/u/thomas.dotreppe)\
**Post date:** [December 21, 2015, 11:12pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/8 "2015-12-21T23:12:38Z")

</div>

Ubuntu 14.04 LTS. Need more details?

---

<div class="post-metadata">

**Author:** ![Khalah\_Jones\_Golden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khalah_jones_golden/32/7169_2.png) [@Khalah\_Jones\_Golden](https://discuss.elastic.co/u/Khalah_Jones_Golden)\
**Post date:** [December 21, 2015, 11:13pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/9 "2015-12-21T23:13:58Z")

</div>

The more the better, you have logging turned on? any files? what version of kibana, what version of ES, do you have shield installed, what about any other ES plugins?

---

<div class="post-metadata">

**Author:** ![thomas.dotreppe](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@thomas.dotreppe](https://discuss.elastic.co/u/thomas.dotreppe)\
**Post date:** [December 21, 2015, 11:28pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/10 "2015-12-21T23:28:24Z")

</div>

I don't think I have logging on. Kibana 4.3. ElasticSearch 2.1.0.

No plugin on ElasticSearch.

---

<div class="post-metadata">

**Author:** ![sseycek](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sseycek](https://discuss.elastic.co/u/sseycek)\
**Post date:** [January 29, 2016, 10:08am UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/11 "2016-01-29T10:08:34Z")

</div>

same here, kibana 4.3.1 on CentOS:

```
  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15858 root 20 0 2349m 1.4g 4632 S 0.9 49.7 4:21.36 /opt/kibana/bin/../node/bin/node /opt/kibana/bin/../src/cli
```

---

<div class="post-metadata">

**Author:** ![mnhan](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mnhan](https://discuss.elastic.co/u/mnhan)\
**Post date:** [February 5, 2016, 5:31pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/12 "2016-02-05T17:31:17Z")

</div>

same for kibana 4.3.1 rhel 6. Watching the kibana node process on top and seeing the memory slowly increasing on it with nothing accessing kibana after restart. I tried adding the --max-old-space-size option to kibana exec, but its doesn't seem to have any affect

`57505 kibana 20 0 1681m 817m 9252 S 1.0 21.4 0:45.85 /opt/kibana/bin/../node/bin/node --max-old-space-size=500 /opt/kibana/bin/../src/cli`

Has anyone tested kibana 4.4 ? does it suffer the same memory leak?

---

<div class="post-metadata">

**Author:** ![Stuart\_Donovan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stuart_donovan/32/7808_2.png) [@Stuart\_Donovan](https://discuss.elastic.co/u/Stuart_Donovan)\
**Post date:** [February 15, 2016, 7:37pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/13 "2016-02-15T19:37:06Z")

</div>

@mnhan Yes - I'm seeing the same behavior with 4.4.1 (build 9693) on Ubuntu Trusty.

---

<div class="post-metadata">

**Author:** ![mnhan](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mnhan](https://discuss.elastic.co/u/mnhan)\
**Post date:** [February 16, 2016, 1:38pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/14 "2016-02-16T13:38:42Z")

</div>

@Stuart_Donovan I filed an issue at [https://github.com/elastic/kibana/issues/6153](https://github.com/elastic/kibana/issues/6153)

Only happens when I enable SSL on kibana, which of course one needs when one puts ES behind an ssl proxy

---

<div class="post-metadata">

**Author:** ![hackguru](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hackguru/32/14098_2.png) [@hackguru](https://discuss.elastic.co/u/hackguru)\
**Post date:** [December 22, 2016, 9:46pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/15 "2016-12-22T21:46:32Z")

</div>

I also see the same thing after upgrading from 1.3 to 4.6.1. It seems to be periodical. Usage goes up to 14GB.

The server is installed on Ubuntu slim docker image and has Timelion and Mathlion plugins installed. Below is sample memory usage chart.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/e/edc4d54bcb1f5db0e66ddec16aaf6a3fa6d48572.png)

---

<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 6, 2017, 1:33pm UTC](https://discuss.elastic.co/t/kibana-4-2-server-memory-usage/33575/16 "2017-07-06T13:33:36Z")

</div>


