简体   繁体   中英

how to set nodejs v8 options to perform well?

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM