R
Railway14mo ago
war

Worker Killed Issue

I'm getting the attached error when I try to request my app from a React frontend, whereas I wasn't getting that error requesting the app from a Python file using requests. Why might I be getting a memory error in this case, and what can I do to fix it?
No description
24 Replies
Percy
Percy14mo ago
Project ID: N/A
war
war14mo ago
N/A Not sure how to access project ID
Brody
Brody14mo ago
you are on the trial plan, trial plan users get 512mb of ram, if you need more you will want to upgrade to hobby the bot told you how
war
war14mo ago
it said ctrl cmd k, I tried that with the project open in Railway and nothing happened
Brody
Brody14mo ago
it was ctrl or cmd depending on your platform either way, its not needed for this case
war
war14mo ago
Is there a way for me to check how much ram my app is actually using? I don't understand why the exact same request is working from a local file but not from a React app when I'm sending them to the same endpoint
Brody
Brody14mo ago
visit the metrics tab
war
war14mo ago
hm, ok I can see maybe it's gotten a little high over the last hour but I don't see it getting close to 512mb
No description
war
war14mo ago
Would it not show the memory getting to 512 if it got that high? because the worker was killed?
Brody
Brody14mo ago
there may have been a tiny spike up to 512mb before railway captured a memory metric recording pretty sure railway records memory usage every minute so its totally possible for your app to have tried to use more than 512mb of memory and crashed before railway recorded the memory usage
war
war14mo ago
ahh i see i see okay thank you that's helpful what are the memory benchmarks of the paid tiers?
Brody
Brody14mo ago
8gb on hobby
war
war14mo ago
what about the team plan?
Brody
Brody14mo ago
32gb
war
war14mo ago
okay thank you is that the highest?
Brody
Brody14mo ago
you can do custom plans on enterprise
war
war14mo ago
so enterprise could go higher than 32 gig?
Brody
Brody14mo ago
for sure
war
war14mo ago
ok very helpful, thanks a lot!
Brody
Brody14mo ago
no prob let me know if you still get killed after the upgrade! keep in mind you will need to redeploy your service to utilize the newly added resources
war
war14mo ago
ahh okay helpful still trying to fully understand why we're getting killed -- idea why a local request to the endpoint with the same data as a request from a frontend application would take different amounts of memory?
Brody
Brody14mo ago
no clue, just python things? lol
war
war14mo ago
lol Will concurrent requests to a single endpoint work? And where would the logs appear for each individual request if the app was running for two separate requests at the same time?
Brody
Brody14mo ago
(answered in your new thread)
Want results from more Discord servers?
Add your server