Investigating Unexpected Memory Usage in Kubernetes Pods Causing Restarts #48573
Kaushikdhola
started this conversation in
General
Replies: 1 comment
-
You can use the You can use other monitoring tools like Prometheus if that suits your need. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m encountering an issue with memory management in my Kubernetes setup, where specific pods are consuming unexpected amounts of memory, leading to frequent restarts. I’d appreciate any guidance on diagnosing this issue and understanding what might be causing the memory consumption.
Problem Description
In our current Kubernetes setup, certain pods are writing heavily to memory, eventually consuming the allotted memory limits, which causes them to be terminated and restarted by the system. This behavior disrupts the workload, and we are unclear on what specifically is writing to memory or why this memory consumption is happening.
Since my end goal is to store this data on a Persistent Volume (PVC) instead, if we can identify the process causing this memory usage, I could redirect it to disk storage and avoid filling up memory.
Here’s what I have attempted to understand and troubleshoot this issue:
Using kubectl describe and kubectl top:
Setting Resource Limits:
In-pod Process Analysis:
Questions:
Beta Was this translation helpful? Give feedback.
All reactions