# kubernetes restart pods by memory

**URL:** <https://community.dynatrace.com/t/kubernetes-restart-pods-by-memory/43165>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [December 12, 2023, 4:08pm UTC](https://community.dynatrace.com/t/kubernetes-restart-pods-by-memory/43165 "2023-12-12T16:08:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ellery](https://avatars.discourse-cdn.com/v4/letter/e/5e9695/32.png) [@Ellery](https://community.dynatrace.com/u/Ellery)\
**Post date:** [December 12, 2023, 4:08pm UTC](https://community.dynatrace.com/t/kubernetes-restart-pods-by-memory/43165/1 "2023-12-12T16:08:27Z")

</div>

I have the following issue: in my Kubernetes ecosystem, I have a microservice that keeps restarting due to memory issues. We’ve increased the memory, but it still continues to restart. What Dynatrace shows me is that it restarted due to memory. Does Dynatrace have any way to help me debug and indicate the cause or which method is causing the memory problem or consumption?

---

<div class="post-metadata">

**Author:** ![bsnurka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bsnurka/32/26730_2.png) [@bsnurka](https://community.dynatrace.com/u/bsnurka)\
**Post date:** [February 7, 2024, 5:59pm UTC](https://community.dynatrace.com/t/kubernetes-restart-pods-by-memory/43165/2 "2024-02-07T17:59:38Z")

</div>

Hey&nbsp;[@Ellery](https://community.dynatrace.com/user/65321)&nbsp;does the microservice create an actual memdump? One option would be to use [Memory Profiling within Dynatrace.](https://docs.dynatrace.com/docs/platform-modules/applications-and-microservices/profiling-and-optimization/memory-profiling)

I believe the [allocation hotspots](https://docs.dynatrace.com/docs/platform-modules/applications-and-microservices/profiling-and-optimization/memory-profiling#all-allocations) may be what you are most interested in.
