Node.js中的默认堆栈大小是多少? [英] What is the default stack size in Node.js?

查看:322
本文介绍了Node.js中的默认堆栈大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何设置堆栈大小,这要归功于:
如何增加Node.js中的最大调用堆栈大小

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

但是,默认大小是多少? (即如何获得 phpinfo()的PHP等效项)

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

推荐答案

简单的答案是,默认堆栈大小为492 KB(32位)和984 KB(64位)。

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

如soyuka所评论,请尝试此操作:

As commented by soyuka try this:

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

$ node --v8-options | grep -B0 -A1 stack-size

这篇关于Node.js中的默认堆栈大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆