【发布时间】:2014-01-11 22:31:59
【问题描述】:
我知道如何设置堆栈大小,这要归功于: How can I increase the maximum call stack size in Node.js
但是,默认尺寸是多少? (即我如何获得相当于phpinfo() 的PHP)
【问题讨论】:
我知道如何设置堆栈大小,这要归功于: How can I increase the maximum call stack size in Node.js
但是,默认尺寸是多少? (即我如何获得相当于phpinfo() 的PHP)
【问题讨论】:
简单的答案是默认堆栈大小为 492 kBytes(32 位)和 984 kBytes(64 位)。
正如 soyuka 所说,试试这个:
$ node --v8-options | grep -B0 -A1 stack_size
或
$ node --v8-options | grep -B0 -A1 stack-size
【讨论】:
$ node --v8-options | grep -B0 -A1 stack_size