# Process memory vs. Heap memory

**URL:** <https://community.dynatrace.com/t/process-memory-vs-heap-memory/36401>\
**Category:** Open Q&A\
**Tags:** process-groups, hosts-classic\
**Created:** [September 1, 2022, 7:14am UTC](https://community.dynatrace.com/t/process-memory-vs-heap-memory/36401 "2022-09-01T07:14:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [September 1, 2022, 7:14am UTC](https://community.dynatrace.com/t/process-memory-vs-heap-memory/36401/1 "2022-09-01T07:14:28Z")

</div>

Dear All,

Suppose, a process memory heap size is configured as **8GB** , and the process memory utilization is **29G** (memory saturation occurred due to this, whereas, the heap size never reached the maximum size).

What does actually it mean?

 ![Babar_Qayyum_0-1662015516699.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/da6c459941583cf0d5b9fc469938b09e98e83727.png)

 ![Babar_Qayyum_1-1662015606952.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/e/4eded17a9b678578b8ae0aff2a4e9bc7676ea6a1.png)

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![richard\_guerra](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/richard_guerra/32/9592_2.png) [@richard\_guerra](https://community.dynatrace.com/u/richard_guerra)\
**Post date:** [September 1, 2022, 3:46pm UTC](https://community.dynatrace.com/t/process-memory-vs-heap-memory/36401/2 "2022-09-01T15:46:32Z")

</div>

I’m not an expert by any means, but this looks like a good explanation:&nbsp;[Splunk® Application Performance Monitoring | Splunk](https://plumbr.io/blog/memory-leaks/why-does-my-java-process-consume-more-memory-than-xmx). Essentially, the jvm has some additional overhead over the heap.

---

<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 1, 2022, 5:17pm UTC](https://community.dynatrace.com/t/process-memory-vs-heap-memory/36401/3 "2022-09-01T17:17:12Z")

</div>

Hi Babar,

To be honest I have never seen before such porcess memory status. As far as I know commited heap memory at jvm metrics equals all process instance (different process indentifier on the same host) heap&nbsp; size. Do you have only one jvm instance on the VM?

 ![Mizs_0-1662052155988.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/f61dd0a280a73e2ee8b91c3782a372e9be1d9dbb.png)

Is it possible to share the command line args in order to check the jvm start parameters?

 ![Mizs_1-1662052440153.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/edd28693753320a2dec6f81341dde968d4755046.png)

Br, Mizső

---

<div class="post-metadata">

**Author:** ![harald\_berger](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/harald_berger/32/31754_2.png) [@harald\_berger](https://community.dynatrace.com/u/harald_berger)\
**Post date:** [September 2, 2022, 9:40am UTC](https://community.dynatrace.com/t/process-memory-vs-heap-memory/36401/4 "2022-09-02T09:40:59Z")

</div>

Hi,

Please mind that the sum of all the Java memory pools will never be the total amount of memory the java process consumes from the OS. The JVM allocates also native memory for all the thread stacks, GC, symbols or native byte buffers (NIO).

Also consider that not all memory pools are heap pools. So please have a look at the detailed JVM screen where all pools are listed separately. Maybe the metaspace is getting too large.

It is also possible that an application is using native parts via JNI where custom native programs consume native memory that is not part of the heap.

Last but not least, it is also possible the program parts or the JVM itself does leak native memory. We have seen this on AIX for old JVMs.

best

Harry

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 2, 2022, 3:32pm UTC](https://community.dynatrace.com/t/process-memory-vs-heap-memory/36401/5 "2022-09-02T15:32:23Z")

</div>

[@Babar\_Qayyum](https://community.dynatrace.com/user/22017),

You are probably in a scenario where memory leaks are occurring.

I normally follow it’s behavior after a restart, and if it keeps allocating system memory over time, you are probably in for a leak detection. These are difficult scenarios to debug, but if you follow it over time, you will probably better doing a memory dump before it creates problems (like at 25GB) and then trying to check where the leak, or whatever is causing memory consumption to rise. From past experiences, not an easy task…

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 2, 2022, 3:33pm UTC](https://community.dynatrace.com/t/process-memory-vs-heap-memory/36401/6 "2022-09-02T15:33:41Z")

</div>

BTW, this is something that happens quite frequently. One of the main reasons for having to do applications restarts after some time…
