R
Railway•17mo ago
donnyroufs

Service seems to fail to respond after X period

Hi, I launched a proof of concept today and every hour orso my service, which runs NextJS, seems to fail to respond. It just keeps on trying to navigate to the page but it stays blank. There is nothing in the deploy logs, and only a restart of the service seems to fix it. Any idea what this could be? I'm about to add sentry to make sure its not on my end.
Solution:
im pretty confident in saying that this is a out of memory issue, node behaves in strange ways when it runs out of memory
Jump to solution
14 Replies
Percy
Percy•17mo ago
Project ID: 99c75b3b-d1aa-4328-b066-cd798e192be7
donnyroufs
donnyroufsOP•17mo ago
99c75b3b-d1aa-4328-b066-cd798e192be7
Brody
Brody•17mo ago
are you on the trial plan?
donnyroufs
donnyroufsOP•17mo ago
Yeah Oh this sounds obvious, I suppose there is some kind of limit on traffic it handles?
Brody
Brody•17mo ago
no but there is a limit on memory, 512mb so what do your memory metrics look like?
donnyroufs
donnyroufsOP•17mo ago
donnyroufs
donnyroufsOP•17mo ago
you can tell I did a restart a few min ago around 6:03 orso it stopped responding
donnyroufs
donnyroufsOP•17mo ago
'
Solution
Brody
Brody•17mo ago
im pretty confident in saying that this is a out of memory issue, node behaves in strange ways when it runs out of memory
donnyroufs
donnyroufsOP•17mo ago
Might explain. I will upgrade and see if it happens again, if not I will mark it as solved 🙂
Brody
Brody•17mo ago
sounds good!
donnyroufs
donnyroufsOP•17mo ago
Ah might also be a good thing to give it a health endpoint, didnt realise I had to set it up myself. Is there anything else i have to do after changing the plan or will it migrate the project automatically?
Brody
Brody•17mo ago
youd just need to click redeploy! yep always good to setup a health check
donnyroufs
donnyroufsOP•17mo ago
Looks like the fix. I suppose it would have tried to restart itself with an actual health endpoint but nonetheless I had to upgrade anyway! Cheers
Want results from more Discord servers?
Add your server