29

I know how to set the stack size thanks to: How can I increase the maximum call stack size in Node.js

But, what is the default size? (ie how do I get to the PHP equivalent of phpinfo())

Community
  • 1
  • 1
blak3r
  • 16,066
  • 16
  • 78
  • 98
  • See http://www.2ality.com/2014/04/call-stack-size.html and related question http://stackoverflow.com/questions/20748061/what-is-the-default-stack-size-in-node-js. – Mihai8 Jun 01 '15 at 12:57

1 Answers1

51

The simple answer is that the default stack size is 492 kBytes (32-bit) and 984 kBytes (64-bit).

As commented by soyuka try this:

$ node --v8-options | grep -B0 -A1 stack_size

or

$ node --v8-options | grep -B0 -A1 stack-size
Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366
Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331