# Kibana to run more than one process using PM2

**URL:** <https://discuss.elastic.co/t/kibana-to-run-more-than-one-process-using-pm2/164349>\
**Category:** Kibana\
**Created:** [January 15, 2019, 5:16pm UTC](https://discuss.elastic.co/t/kibana-to-run-more-than-one-process-using-pm2/164349 "2019-01-15T17:16:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![colinPDX](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@colinPDX](https://discuss.elastic.co/u/colinPDX)\
**Post date:** [January 15, 2019, 5:16pm UTC](https://discuss.elastic.co/t/kibana-to-run-more-than-one-process-using-pm2/164349/1 "2019-01-15T17:16:18Z")

</div>

Hi. Has anyone successfully run Kibana using PM2 or have recommendations to do so for a system w/, say, k hardware threads available? I have a 96vCPU VM available.

Thanks. - Colin

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 16, 2019, 7:15am UTC](https://discuss.elastic.co/t/kibana-to-run-more-than-one-process-using-pm2/164349/2 "2019-01-16T07:15:00Z")

</div>

The Kibana server process is typically not very CPU intensive, so I have no idea how it would ever need or be able to use such a large number of CPU cores. What does your overall cluster architecture look like?

---

<div class="post-metadata">

**Author:** ![colinPDX](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@colinPDX](https://discuss.elastic.co/u/colinPDX)\
**Post date:** [January 16, 2019, 3:43pm UTC](https://discuss.elastic.co/t/kibana-to-run-more-than-one-process-using-pm2/164349/3 "2019-01-16T15:43:07Z")

</div>

Christian. While I have 96vCPUs (48 cores) on the server, it supports the other components of the ELK stack as well. We are using it to support analysis of data collected on other VMs in the cloud from which we'll pipe the data in using Kafka. The cluster architecture is AWS, this is on a r5d instance. You're right that it shouldn't take too much compute--I don't want to give it all to it. At the same time, it should be able to perform should multiple users connect to Kibana. For that, or to support a longer time span queries, we thought it might benefit from separate processes.  
I was also looking for a recommendation on setting --max-old-space-size= as a relative share of overall memory the system has available. We have it at 16GB but could allocate quite a bit more if that is thought to make kibana more resilient.

Thanks, - Colin

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 16, 2019, 3:47pm UTC](https://discuss.elastic.co/t/kibana-to-run-more-than-one-process-using-pm2/164349/4 "2019-01-16T15:47:42Z")

</div>

When you are querying lots of data, the Kibana server process does very little of the work. The vast majority of work is done by Elasticsearch, which will require much more resources and generally be the component limiting performance.

---

<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:** [February 13, 2019, 3:47pm UTC](https://discuss.elastic.co/t/kibana-to-run-more-than-one-process-using-pm2/164349/5 "2019-02-13T15:47:45Z")

</div>

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