Closed elomraydino closed 4 years ago
I can't help you, this is very small amout of information. We provide more than 100 apps and without any problem. Memory leak can be caused with storing a lot of information in objects.
node --max-old-space-size=8192 release.js
(8 GB memory)Is the problem in view only or the problem is in entire app?
The objects are js objects containing simple information (string, int, boolean) like user info, report schedule time and api ids... the problem is in in the entire app. Thanks for the advises; I will try them! I will close the issue for now. But in case you find something about this, please share.
OK, just let me know.
I observe a sort off memory leak using GLOBAL to store app settings that i don't want to load from db at each request. I first put them directly in GLOBAL then in MAIN but still have the same behavior. After some hours and sometime some days those settings are not accessible any more. Bellow the way I load an use them. The app is currently running on node 10.18.0 but I plan to move to node 12 suspecting a nodejs memory leak bug.