My app (lot of traffic) is crashing and showing this error…
I’m using node.js + docker on Digital Ocean.
I research and found this:
I tried to run node --max-old-space-size=4096 app.js # Increase limit to 4GB (as my server memory) but it’s not recognizing this command on Wappler Web Server terminal…
There is a loop to add data into the database, but not endless…Maybe we have this loop working with many users at the same time and its is running out memory?
Also you can monitor your NodeJS process when you run in local development and see on which actions the memory increase. You might need to run them multiple times to see the memory increase.
SELECT num as num_sorte_gerado FROM GENERATE_SERIES (100000, 999999) AS s(num) WHERE num not in (select num_sorte::INTEGER from cupom_sorte ) order by random() LIMIT 1