nextjs memory gradually increases even if no use . starts at 300mb to reaches 2.5GB.
I noticed this long ago when i started at april. In september I was restarting every week to see if any difference in pricing. I was able to save 8 dollars.
Total bill in september - 10$ ( 6 restarts)
Total bill in october - 18$ (1 restart )
I can safely say there is no additional usage between october and september . Just similar usages.
6 Replies
Project ID:
12191958-96e7-4a82-af43-1ac6018d55ae
12191958-96e7-4a82-af43-1ac6018d55ae
looks like you have a memory leak
thanks i will check on that.
had a similar issue with NestJS (backend), last week I figured that I needed to run
npm run start:prod
instead of npm run start
in order to cap the memory climb; I wonder if there is something similar for NextJS?Thanks , I am using the optimized version of
next
that is next start
so should be something with memory leaks. Have to refer some tutorials on how to debug mem leaks.