how can increase Node.js memory limit??

22 Replies
Percy
Percy16mo ago
Project ID: fb928ae2-62f0-4f8f-be68-9f7902efbebd
MikhailBaor
MikhailBaor16mo ago
fb928ae2-62f0-4f8f-be68-9f7902efbebd
Brody
Brody16mo 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
MikhailBaor16mo ago
no i have this plan of 32gb of RAM
Brody
Brody16mo ago
oh my bad, discord didnt show a pro badge what do you want the memory limit for node to be set to?
MikhailBaor
MikhailBaor16mo 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
Brody16mo ago
this question is about increasing the node memory limit, what do you want the memory limit for node to be set to?
MikhailBaor
MikhailBaor16mo ago
you can set 50 mb?
Brody
Brody16mo ago
that would cause massive instabilities this question is about increasing the node memory limit
MikhailBaor
MikhailBaor16mo ago
en el body parser in the body parser
Brody
Brody16mo ago
i think you are getting off track
MikhailBaor
MikhailBaor16mo ago
app.use(bodyParser.json({ limit: '50mb' })); app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
Brody
Brody16mo ago
i dont see what this has to do with the original question
MikhailBaor
MikhailBaor16mo 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
Brody16mo ago
okay what do you want to increase it to?? give me a number 12, 16, 24 gigabytes, what do you want?
MikhailBaor
MikhailBaor16mo ago
if i change this, itll have a extra cost in my actual membership? i can prove with 12
Brody
Brody16mo ago
you pay for the usage, correct
MikhailBaor
MikhailBaor16mo ago
and i check if this solve the issue
Brody
Brody16mo ago
set a service variable NODE_OPTIONS = --max-old-space-size=12288
MikhailBaor
MikhailBaor16mo ago
ok thanks, but it cant solve the issue, i need other tread for it?
Brody
Brody16mo ago
at this point im pretty sure this is a code issue and not an issue with railway
MikhailBaor
MikhailBaor16mo ago
ok ill recheck the code in local then thank you with same information
Want results from more Discord servers?
Add your server