# oldgen slowly filling up

**URL:** <https://community.dynatrace.com/t/oldgen-slowly-filling-up/20919>\
**Category:** Open Q&A\
**Tags:** memory-dump, threshold\
**Created:** [June 11, 2019, 8:26am UTC](https://community.dynatrace.com/t/oldgen-slowly-filling-up/20919 "2019-06-11T08:26:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 11, 2019, 8:26am UTC](https://community.dynatrace.com/t/oldgen-slowly-filling-up/20919/1 "2019-06-11T08:26:11Z")

</div>

Hello,

Is there a best practice if you notice a memory leak that is visible by at the minor increase of the old-gen?

From Dynatrace perspective, you can set a threashold and dump the heap. Are there more tip and tricks?

KR Henk

---

<div class="post-metadata">

**Author:** ![Joe\_Hoffman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joe_hoffman/32/30752_2.png) [@Joe\_Hoffman](https://community.dynatrace.com/u/Joe_Hoffman)\
**Post date:** [June 11, 2019, 3:00pm UTC](https://community.dynatrace.com/t/oldgen-slowly-filling-up/20919/2 "2019-06-11T15:00:03Z")

</div>

Henk, Another approach is to take a dump before it grows, then another dump after it has grown and use a tool that can compare dumps. A variety of java memory dump tools in the market provide comparison capability. This approach can help determine the offending object that’s consuming old-gen.
