# Create chart about JVM memory allocation and used for dashboard

**URL:** <https://community.dynatrace.com/t/create-chart-about-jvm-memory-allocation-and-used-for-dashboard/48960>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer, dashboards, charts\
**Created:** [November 19, 2024, 4:38pm UTC](https://community.dynatrace.com/t/create-chart-about-jvm-memory-allocation-and-used-for-dashboard/48960 "2024-11-19T16:38:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cleoleeps1](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@cleoleeps1](https://community.dynatrace.com/u/cleoleeps1)\
**Post date:** [November 19, 2024, 4:38pm UTC](https://community.dynatrace.com/t/create-chart-about-jvm-memory-allocation-and-used-for-dashboard/48960/1 "2024-11-19T16:38:05Z")

</div>

In our host’s process, we can find the heap memory chart under JVM metrics tab.

It has 3 metrics:

- Committed memory
- Used Memory
- Garbage collection time

 ![cleoleeps1_0-1732034190457.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/0/502f90a446d89a5359dae647f7365947dc14e814.png)

May I know wow can I create the same? Because I would like to add into a dashboard for monitoring along with other charts.

I tried the built-in metric in data explorer, however, the value is never the same as the screenshot above.

It was showing around 300MiB - 500 MiB. Not even close to 2.5GiB.

 ![cleoleeps1_0-1732034526543.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/f/7f2043c8f609cd72bead3458c27ebfd6feac6fdf.png)

Appreciate some pointers here. Thank you!

---

<div class="post-metadata">

**Author:** ![Nick-Montana](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nick-montana/32/2051_2.png) [@Nick-Montana](https://community.dynatrace.com/u/Nick-Montana)\
**Post date:** [November 19, 2024, 4:44pm UTC](https://community.dynatrace.com/t/create-chart-about-jvm-memory-allocation-and-used-for-dashboard/48960/2 "2024-11-19T16:44:27Z")

</div>

Hi!

You can easily create a dashboard and query JVM metrics through the Dynatrace Data Explorer. Here are all the possible options for JVM metrics

| 

```
builtin:tech.jvm.classes.loaded
```

 | 

```
JVM loaded classes
```

 |
| 

```
builtin:tech.jvm.classes.total
```

 | 

```
JVM total number of loaded classes
```

 |
| 

```
builtin:tech.jvm.classes.unloaded
```

 | 

```
JVM unloaded classes
```

 |
| 

```
builtin:tech.jvm.memory.gc.activationCount
```

 | 

```
Garbage collection total activation count
```

 |
| 

```
builtin:tech.jvm.memory.gc.collectionTime
```

 | 

```
Garbage collection total collection time
```

 |
| 

```
builtin:tech.jvm.memory.gc.suspensionTime
```

 | 

```
Garbage collection suspension time
```

 |
| 

```
builtin:tech.jvm.memory.pool.collectionCount
```

 | 

```
Garbage collection count
```

 |
| 

```
builtin:tech.jvm.memory.pool.collectionTime
```

 | 

```
Garbage collection time
```

 |
| 

```
builtin:tech.jvm.memory.pool.committed
```

 | 

```
JVM heap memory pool committed bytes
```

 |
| 

```
builtin:tech.jvm.memory.pool.max
```

 | 

```
JVM heap memory max bytes
```

 |
| 

```
builtin:tech.jvm.memory.pool.used
```

 | 

```
JVM heap memory pool used bytes
```

 |
| 

```
builtin:tech.jvm.memory.runtime.free
```

 | 

```
JVM runtime free memory
```

 |
| 

```
builtin:tech.jvm.memory.runtime.max
```

 | 

```
JVM runtime max memory
```

 |
| 

```
builtin:tech.jvm.memory.runtime.total
```

 | 

```
JVM runtime total memory
```

 |
| 

```
builtin:tech.jvm.memory.memAllocationBytes
```

 | 

```
Process memory allocation bytes
```

 |
| 

```
builtin:tech.jvm.memory.memAllocationCount
```

 | 

```
Process memory allocation objects count
```

 |
| 

```
builtin:tech.jvm.memory.memSurvivorsBytes
```

 | 

```
Process memory survived objects bytes
```

 |
| 

```
builtin:tech.jvm.memory.memSurvivorsCount
```

 | 

```
Process memory survived objects count
```

 |
| 

```
builtin:tech.jvm.threads.avgActiveThreadCount
```

 | 

```
JVM average number of active threads
```

 |
| 

```
builtin:tech.jvm.threads.avgInactiveThreadCount
```

 | 

```
JVM average number of inactive threads
```

 |
| 

```
builtin:tech.jvm.threads.count
```

 | 

```
JVM thread count
```

 |

Go to the data explorer and type in the metric and filter down to your service. Do the same with all the JVM metrics you’d like to query.

When you created the chart hit “Pin to Dashboard”

 ![NickMontana_0-1732034594420.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/fafb8ec2186178e3810d28fdc0d929ce59e9fc02.png)

 ![NickMontana_1-1732034615561.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/e208ffb42c3e3b5e0bb0cb9312fd0a9d9f99e09f.png)

---

<div class="post-metadata">

**Author:** ![cleoleeps1](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@cleoleeps1](https://community.dynatrace.com/u/cleoleeps1)\
**Post date:** [November 19, 2024, 5:15pm UTC](https://community.dynatrace.com/t/create-chart-about-jvm-memory-allocation-and-used-for-dashboard/48960/3 "2024-11-19T17:15:40Z")

</div>

Hello Nick, thanks for your post. I’m aware of the method you mentioned. Still appreciate your time.

I found the issue for not accurate value (showed much lesser JVM memory)&nbsp; I mentioned above.  
It is because I can’t use “Auto”. I should use “Sum” instead in the equation. Then it is the same as per the host’s process JVM.

---

<div class="post-metadata">

**Author:** ![KylerNelson](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@KylerNelson](https://community.dynatrace.com/u/KylerNelson)\
**Post date:** [November 19, 2024, 7:02pm UTC](https://community.dynatrace.com/t/create-chart-about-jvm-memory-allocation-and-used-for-dashboard/48960/4 "2024-11-19T19:02:11Z")

</div>

Split by poolname and filter poolname:JavaHeap on&nbsp;builtin:tech.jvm.memory.pool.committed
