Hello Andrew,
From what you told us about, I see that you’ve figured out calling garbage collection manually. I was able to find this
link in Stackoverflow regarding garbage collection for Nodejs generally. Please tell me if this applies but I think it does.
If you launch the node process with the --expose-gc flag, you can then call global.gc() to force node to run garbage collection. Keep in mind that all other execution within your node app is paused until GC completes, so don't use it too often or it will affect performance.
You might want to include a check when making GC calls from within your code so things don't go bad if node was run without the flag:
try {
if (global.gc) {global.gc();}
} catch (e) {
console.log("`node --expose-gc index.js`");
process.exit();
}
The second part of your question is why it does not work. The error you provided from the deployment command would be the next step but Google Groups is meant for general discussions.
I may check for a common issue if you may provide a timestamp of when you saw the message.