nestjs
Hello, I've been deploying my nestjs application on railway previously it was working fine but suddenly i started encountering this issue.
15 Replies
Project ID:
N/A
looks like you ran out of resources, upgrade to the dev plan and re-deploy
seems like I still have credits left @Brody
ah sorry I should have been more clear, I'm talking specifically about the ram resources, you only get 512mb of ram on the trial plan, hit that resource limit and your app will crash in mysterious ways
ah thanks, should my app even consume 512MB ram resources I've just started with it's development so it doesn't have a lot of API's currently.
ideally, no it shouldn't
show me a screenshot of your service metrics set to 1 day
definitely possibly that there are tiny spikes up to 512mb that get smoothed by the graph
what's your start script?
I've added this export NODE_OPTIONS=--max_old_space_size=4096
and then there is the command nest start
I mean, you don't even have 4096mb on the trial plan, so I don't know why you'd set that
If i don't export this then this issue pops up
Solution
I think it's time to upgrade to the dev plan
okay, thanks for your help @Brody
no problem 🙂