# Heap memory allocation

**URL:** <https://community.dynatrace.com/t/heap-memory-allocation/39867>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, processes\
**Created:** [May 23, 2023, 12:27pm UTC](https://community.dynatrace.com/t/heap-memory-allocation/39867 "2023-05-23T12:27:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Selvam\_Sekar](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Selvam\_Sekar](https://community.dynatrace.com/u/Selvam_Sekar)\
**Post date:** [May 23, 2023, 12:27pm UTC](https://community.dynatrace.com/t/heap-memory-allocation/39867/1 "2023-05-23T12:27:00Z")

</div>

Hi,

I am trying to find the process groups max allocated memory in the Dynatrace. I used this metric “JVM runtime total memory” metric but the value is mismatching.

For example,

in the code, the memory allocated for the process group is&nbsp; 512 MB where as in Dynatrace could see only 490 MB.

---

<div class="post-metadata">

**Author:** ![mizso74](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [May 23, 2023, 1:21pm UTC](https://community.dynatrace.com/t/heap-memory-allocation/39867/2 "2023-05-23T13:21:07Z")

</div>

Hi&nbsp;[@Selvam\_Sekar](https://community.dynatrace.com/user/56732),

I guess one factor could be the difference of MB and MiB (Megabyte vs MebiByte.

JVM config in MB:

![Mizs_0-1684847982176.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/8/c8e945ef5f721879f08b84a3f1fcbf90d8eba169.png)

DataExplorer in MiB:

 ![Mizs_1-1684848021799.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/8/48bef6b4768c12f0c05bd1412780b47cbf0a3abf.png)

I hope it helps.

Best regards,

Mizső
