# Output Heap Space Usage for Kibana

**URL:** <https://discuss.elastic.co/t/output-heap-space-usage-for-kibana/313827>\
**Category:** Kibana\
**Created:** [September 6, 2022, 8:35pm UTC](https://discuss.elastic.co/t/output-heap-space-usage-for-kibana/313827 "2022-09-06T20:35:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreakatie](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@andreakatie](https://discuss.elastic.co/u/andreakatie)\
**Post date:** [September 6, 2022, 8:35pm UTC](https://discuss.elastic.co/t/output-heap-space-usage-for-kibana/313827/1 "2022-09-06T20:35:16Z")

</div>

Hello all -- I was wondering if there was a way to gather heap space usage data for Kibana (and NGINX) specifically.  
Using JMeter, I am able to gather real-time heap data usage for the Elasticsearch service, but I have not been able to find a solution for the Kibana or NGINX services. I was just curious if anyone knew of a command for this.

The following is the bash script/curl command being used for gathering the Elasticsearch heap data,

```auto
#!/bin/bash

curl -u internal-auth:internal-auth -sS "localhost:9200/_cat/nodes?h=heap*" | awk '{ print $2 }' | sed -n '5{p;q}'

```

Thanks all for your time and help 🙂

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 7, 2022, 2:22am UTC](https://discuss.elastic.co/t/output-heap-space-usage-for-kibana/313827/2 "2022-09-07T02:22:46Z")

</div>

Why not use [Monitoring overview | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/monitoring-overview.html)?

---

<div class="post-metadata">

**Author:** ![andreakatie](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@andreakatie](https://discuss.elastic.co/u/andreakatie)\
**Post date:** [September 7, 2022, 3:45pm UTC](https://discuss.elastic.co/t/output-heap-space-usage-for-kibana/313827/3 "2022-09-07T15:45:25Z")

</div>

Hi Mark, thank you for your response. 🙂 The monitoring stack is set up as shown below.

 ![monit-stack](https://us1.discourse-cdn.com/elastic/original/3X/5/6/5688d703ddb8d39fcc1a10c6d93f026d95d6073a.png)

What I am after is the real-time heap space usage that Kibana and NGINX alone are using at a given moment for load and performance testing of the entire stack. I do not see any information related to gathering heap space usage for a specific service. I understand Metricbeat will gather monitoring data for the service, but I cannot find information on specifically gathering heap data for any service other than Elasticsearch.

---

<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:** [October 5, 2022, 3:46pm UTC](https://discuss.elastic.co/t/output-heap-space-usage-for-kibana/313827/4 "2022-10-05T15:46:16Z")

</div>

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