R
Railway12mo ago
shrihari

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
Percy
Percy12mo ago
Project ID: 12191958-96e7-4a82-af43-1ac6018d55ae
shrihari
shrihari12mo ago
12191958-96e7-4a82-af43-1ac6018d55ae
Brody
Brody12mo ago
looks like you have a memory leak
shrihari
shrihari12mo ago
thanks i will check on that.
CyrilChandelier
CyrilChandelier12mo ago
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?
shrihari
shrihari12mo ago
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.
Want results from more Discord servers?
Add your server