Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a good reference for V8 command line arguments when using node.js

I can't seem to find a good reference for the various command line options available with Node.js. I'm specifically interested in those that control V8 memory usage. e.g. --max_new_space_size, --max_old_space_size, etc.

Where can I find out what those mean?

Thanks!

like image 415
cortfr Avatar asked Oct 12 '12 17:10

cortfr


2 Answers

If you start node with the argument --v8-options, you'll get a list of all v8 related options for node. Not sure that there is any specific DOC that outlines all these options (though would definitely be nice to have).

like image 115
AlexGad Avatar answered Sep 25 '22 16:09

AlexGad


2 years and no definitive answer. I used the v8 source as a reference:

github.com/v8/v8/blob/master/src/flags/flag-definitions.h

These should also work in chrome via --js-flags.

like image 28
technosaurus Avatar answered Sep 26 '22 16:09

technosaurus