Reputation: 176
I learned that if I'm running NodeJs and other softwares(imagemagick...) on small memory machine
I can run node --global_gc your_script.js
and I'm not going to get OOME
I see many options when I run node --v8-options
but I can't find any document?
Is there any important options I should be aware of to scale my Nodejs?
Upvotes: 2
Views: 4865
Reputation: 650
The flag is called --gc-global or --gc_global, not --global_gc.
You may find this list of flags helpful: http://erikcorry.blogspot.dk/2012/11/memory-management-flags-in-v8.html
Upvotes: 1