The DevOps Quest

App Service

NextJS Memory Leak

So… we had a memory leak.

We are running a NextJS dockerised container in App Service. This is a new application I have been working on, and it was getting ready to be deployed into production. During our load testing of the application we noticed a strange pattern in the metrics. RAM was climbing up and up until eventually the container would die and restart.

NodeJS v22.8.0 Next.js 14.2.9

Memory Leak