What is the default stack size in Node.js?

后端 未结 1 2006
春和景丽
春和景丽 2020-12-14 16: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 equ

相关标签:
1条回答
  • 2020-12-14 17:14

    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
    
    0 讨论(0)
提交回复
热议问题