how can increase Node.js memory limit??

22 Replies
Percy
Percy17mo ago
Project ID: fb928ae2-62f0-4f8f-be68-9f7902efbebd
MikhailBaor
MikhailBaorOP17mo ago
fb928ae2-62f0-4f8f-be68-9f7902efbebd
Brody
Brody17mo ago
I'd say the limiting factor would be the 512mb of ram on the trial plan also, not the best idea to use nodemon on railway, can cause instabilitys in a production environment
MikhailBaor
MikhailBaorOP17mo ago
no i have this plan of 32gb of RAM
Brody
Brody17mo ago
oh my bad, discord didnt show a pro badge what do you want the memory limit for node to be set to?
MikhailBaor
MikhailBaorOP17mo ago
how can i solve the issue i try to change the response of controller, with less data in getAll controllers but i have the same result
Brody
Brody17mo ago
this question is about increasing the node memory limit, what do you want the memory limit for node to be set to?
MikhailBaor
MikhailBaorOP17mo ago
you can set 50 mb?
Brody
Brody17mo ago
that would cause massive instabilities this question is about increasing the node memory limit
MikhailBaor
MikhailBaorOP17mo ago
en el body parser in the body parser
Brody
Brody17mo ago
i think you are getting off track
MikhailBaor
MikhailBaorOP17mo ago
app.use(bodyParser.json({ limit: '50mb' })); app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
Brody
Brody17mo ago
i dont see what this has to do with the original question
MikhailBaor
MikhailBaorOP17mo ago
my question its about the issue in the raylways console, i ask at chat gpt and it say i should to increase the nodes memory limit
Brody
Brody17mo ago
okay what do you want to increase it to?? give me a number 12, 16, 24 gigabytes, what do you want?
MikhailBaor
MikhailBaorOP17mo ago
if i change this, itll have a extra cost in my actual membership? i can prove with 12
Brody
Brody17mo ago
you pay for the usage, correct
MikhailBaor
MikhailBaorOP17mo ago
and i check if this solve the issue
Brody
Brody17mo ago
set a service variable NODE_OPTIONS = --max-old-space-size=12288
MikhailBaor
MikhailBaorOP17mo ago
ok thanks, but it cant solve the issue, i need other tread for it?
Brody
Brody17mo ago
at this point im pretty sure this is a code issue and not an issue with railway
MikhailBaor
MikhailBaorOP17mo ago
ok ill recheck the code in local then thank you with same information
Want results from more Discord servers?
Add your server