# Configure JVM Heap space memory monitoring to split by host

**URL:** <https://community.dynatrace.com/t/configure-jvm-heap-space-memory-monitoring-to-split-by-host/41625>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, dashboards\
**Created:** [September 13, 2023, 8:45am UTC](https://community.dynatrace.com/t/configure-jvm-heap-space-memory-monitoring-to-split-by-host/41625 "2023-09-13T08:45:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Afrezal\_Karim](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/afrezal_karim/32/6937_2.png) [@Afrezal\_Karim](https://community.dynatrace.com/u/Afrezal_Karim)\
**Post date:** [September 13, 2023, 8:45am UTC](https://community.dynatrace.com/t/configure-jvm-heap-space-memory-monitoring-to-split-by-host/41625/1 "2023-09-13T08:45:31Z")

</div>

Dear Dynatrace Warriors.  
Hope you guys are doing well.

Is it possible to Configure JVM Heap space memory monitoring and splitting by host/server?&nbsp;Instead of monitoring the overall server process, how can I focus on the JVM heap space only for a specific server?&nbsp;I would like to get the details of this and showcase this on the Dashboard so that my team can monitor and review this.

Look forward to your guys’ response on this.&nbsp;Thank you so much for helping out guys.

Appreciate it as always.&nbsp;  
Thanks,

Regards,&nbsp;  
Afrezal Karim

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [September 13, 2023, 10:34am UTC](https://community.dynatrace.com/t/configure-jvm-heap-space-memory-monitoring-to-split-by-host/41625/2 "2023-09-13T10:34:20Z")

</div>

Hi,

I am not sure if I understand you but can you execute this in data explorer?

```markup
builtin:tech.jvm.memory.pool.used:splitBy("dt.entity.process_group_instance"):sort(value(auto,descending)):parents

```

If you choose table visualization for example, you should see 3 columns:

- Hostname.
- Process.
- JVM heap memory pool used bytes.

Best regards

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [September 14, 2023, 2:57pm UTC](https://community.dynatrace.com/t/configure-jvm-heap-space-memory-monitoring-to-split-by-host/41625/3 "2023-09-14T14:57:06Z")

</div>

Hi&nbsp;[@Afrezal\_Karim](https://community.dynatrace.com/user/48175)

[@AntonPineiro](https://community.dynatrace.com/user/58682)&nbsp; answer is perfect.

If you would like to provide more extra, useful information about the jvm behaviour to the IT operation guys I reccomend these metrics: suspension time and garbage collection total time.

 ![Mizs_0-1694702835800.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/163f3c2a897bbd3c45de2c078d73f4d7e590851e.png)

You can also collect some extra jmx metrics at different types of jvms (jboss, tomcat, weblogic etc…) which ones could be useful for IT ops.

Eg. at weblogic: hogging thread, pending requests or connection pool metrics waiting threads and failed db connects…

 ![Mizs_1-1694703045940.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/045c0eda5d8b5abbd45df71f44a0c0c872be7425.png)

 ![Mizs_2-1694703105745.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/8/789f989a057da93ac5b9ae8e4bcabe15fafa0c75.png)

 ![Mizs_3-1694703235176.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/6b96fb30e5ddf05012b07c57bc5dcc0c78c52cba.png)

And it could be useful if you use the dynamic filter on dashboards:

eg.

 ![Mizs_4-1694703332533.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/3/73f4a49656b6ce2251bb5c20e749d55d040debbe.png)

I hope it helps to provide better service to your teams.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Afrezal\_Karim](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/afrezal_karim/32/6937_2.png) [@Afrezal\_Karim](https://community.dynatrace.com/u/Afrezal_Karim)\
**Post date:** [September 25, 2023, 3:10am UTC](https://community.dynatrace.com/t/configure-jvm-heap-space-memory-monitoring-to-split-by-host/41625/4 "2023-09-25T03:10:21Z")

</div>

Hi&nbsp;[@AntonPineiro](https://community.dynatrace.com/user/58682)&nbsp;,

Thank you so much for your response on this.&nbsp; I’ve tried to execute the query in the Data Explorer and it works like a charm!.

Thanks for helping out. I appreciate it!.

By the way any idea how do i filter by hostname?.&nbsp; was trying to use the :filter and&nbsp;eq(“dt.entity.host”,“HOST-001”) still not able to get the specific host to be filter.

---

<div class="post-metadata">

**Author:** ![Afrezal\_Karim](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/afrezal_karim/32/6937_2.png) [@Afrezal\_Karim](https://community.dynatrace.com/u/Afrezal_Karim)\
**Post date:** [September 25, 2023, 3:17am UTC](https://community.dynatrace.com/t/configure-jvm-heap-space-memory-monitoring-to-split-by-host/41625/5 "2023-09-25T03:17:35Z")

</div>

Hey&nbsp;[@Mizső](https://community.dynatrace.com/user/47783)&nbsp;,

Thats a pretty cool Dashboard you’ve created. Looks awesome.&nbsp;  
Do you mind sharing the details of the builtin query keyword that i can use similar like yours ?.&nbsp;&nbsp;  
Still learning and trying to understand which one is good to be put in the Dashboard.

Again thanks for sharing and and also helping on this. Appreciate it.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [September 25, 2023, 5:01am UTC](https://community.dynatrace.com/t/configure-jvm-heap-space-memory-monitoring-to-split-by-host/41625/6 "2023-09-25T05:01:43Z")

</div>

Hi&nbsp;[@Afrezal\_Karim](https://community.dynatrace.com/user/48175)

Here is an example for filter host. In this case you should also use parents transformation and filter together.

builtin:tech.jvm.memory.pool.used: **parents** :**filter(and(or(in(“dt.entity.host”,entitySelector(“type(host),entityName(~“YOUR HOST NAME ~”)”)))))**:splitBy(“dt.entity.process\_group\_instance”,“dt.entity.host”):sort(value(auto,descending))

Or you can use the dynamic filter on the dashboard as I mentioned before.

I hope it helps.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [September 25, 2023, 5:06am UTC](https://community.dynatrace.com/t/configure-jvm-heap-space-memory-monitoring-to-split-by-host/41625/7 "2023-09-25T05:06:00Z")

</div>

Hi&nbsp;[@Afrezal\_Karim](https://community.dynatrace.com/user/48175),

These are the metric expressions:

In bulilt basic metric:

builtin:tech.jvm.memory.gc.suspensionTime:splitBy(“dt.entity.process\_group\_instance”):max:sort(value(max,descending))

builtin:tech.jvm.memory.gc.collectionTime:splitBy(“dt.entity.process\_group\_instance”):max:sort(value(max,descending))

WL specific in built:

builtin:tech.weblogic.connectionPool.WaitingForConnectionCurrentCount:splitBy(“dt.entity.process\_group\_instance”):sum:sort(value(sum,descending))

builtin:tech.weblogic.connectionPool.FailedReserveRequestCount:splitBy(“dt.entity.process\_group\_instance”):sum:sort(value(sum,descending))

WL extra jmx metrics:

ext:custom.jmx.HoggingThreadCount.metric\_HoggingThreadCount\_1601572768674:splitBy(“dt.entity.process\_group\_instance”):max:sort(value(max,descending))

ext:custom.jmx.PendingRequestCount\_JMX.metric\_PendingRequestCount\_1601790848493:splitBy(“dt.entity.process\_group\_instance”):max:sort(value(max,descending))

Oracle extension metric:

builtin:tech.oracleDb.cd.sessions.active:splitBy(“dt.entity.custom\_device”):sum:sort(value(sum,descending))

I hope it helps.

Best regards,

Mizső
