R

Railway

βœ‹ο½œhelp

Join Server

Memory Problem

K1FKJV 1611 FWBC5/23/2023
I am running into a memory error when I try to use the app with my full array of JSON data. My JSON file is something like 100K lines of video data (id, name, thumb url, etc. ). Anyone know a way to work with that?
K1FKJV 1611 FWBC5/23/2023
05be229b-b790-4543-a729-4506f37e9250
Bbrody5/23/2023
can you show me a screenshot of the memory metrics for the service you are having issues with
K1FKJV 1611 FWBC5/23/2023
Bbrody5/23/2023
and can you show me this memory error?
K1FKJV 1611 FWBC5/23/2023
Bbrody5/23/2023
I don't know if this would cause the issue but regardless you shouldn't be using nodemon on railway, change the start script to just node app.js and let me know how that goes
K1FKJV 1611 FWBC5/23/2023
okay making the changes in the repo now...
K1FKJV 1611 FWBC5/23/2023
Its back up and running, still says active but I am getting a BAD_RESPONSE error on my test site. The logs show KILLED at the end and the memory metric is maxed out at 512. Screenshot to follow.
K1FKJV 1611 FWBC5/23/2023
K1FKJV 1611 FWBC5/23/2023
Solution
Bbrody5/23/2023
you are running into the 512mb memory limit of the trial plan, it is a trial after all. upgrade to the dev plan for access to 8gb of memory and them redeploy your app
K1FKJV 1611 FWBC5/23/2023
Yah it seems to work when I use a low number of JSON objects. Total there are over 17000 objects, but when I limit the result to 1000 or less it seems to work.
Bbrody5/23/2023
yep upgrading to the dev plan will solve your issues
K1FKJV 1611 FWBC5/23/2023
πŸ‘πŸ»