Replies: 1 comment
-
IIRC, we have to specify |
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
-
Summary
Hey folks!
Dealing with an issue that the memory usage of NextJS app on kubernetes is increasing linearly over time.
As per our observation, it seems the garbage collector is not being triggered maybe. As a result, memory usage increases linearly, eventually reaching the pod’s memory limit and causing an OOM (Out of Memory) error.
Once this happens, the Kubernetes pod is restarted. Below is the attached memory trend before and after restart.
We are running
npm start
in our dockerfile as the CMD command which eventually runs:start": "next start -p 5000"
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions