# Heap memory usage and analysis report

**URL:** <https://community.dynatrace.com/t/heap-memory-usage-and-analysis-report/38869>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, hosts-classic, profiling-and-optimization\
**Created:** [March 16, 2023, 5:53pm UTC](https://community.dynatrace.com/t/heap-memory-usage-and-analysis-report/38869 "2023-03-16T17:53:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohitk](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@Rohitk](https://community.dynatrace.com/u/Rohitk)\
**Post date:** [March 16, 2023, 5:53pm UTC](https://community.dynatrace.com/t/heap-memory-usage-and-analysis-report/38869/1 "2023-03-16T17:53:04Z")

</div>

Hi Team,

We have noticed some performance issues and suspect that **heap memory** usage may be a contributing factor.

Specifically, Can we get the details of the following things

- The amount of memory used by each object
- The amount of memory used by each method and located memory

This information will help us optimize our code and reduce memory usage.

---

<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:** [March 16, 2023, 7:52pm UTC](https://community.dynatrace.com/t/heap-memory-usage-and-analysis-report/38869/2 "2023-03-16T19:52:24Z")

</div>

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

You can use the memory profiling. Requirements: form java 11. Very useful tool.

[Memory profiling | Dynatrace Docs](https://www.dynatrace.com/support/help/platform-modules/applications-and-microservices/profiling-and-optimization/memory-profiling)

At previous java versions you can only trigger a memory dump which can be analized in another tool (eg. VisualJVM).

[Memory dump analysis | Dynatrace Docs](https://www.dynatrace.com/support/help/platform-modules/applications-and-microservices/profiling-and-optimization/memory-dump-analysis)

I hope it helps.

Best regards,

Mizső
