30

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())

1

1 Answer 1

53

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
Sign up to request clarification or add additional context in comments.

5 Comments

actually, never mind, it seems to be 32/64 bit differences. Though a link would be great
Link would be good or any info on how to confirm this programmatically
$ node --v8-options | grep -B0 -A1 stack_size
This seems to be outdated
node --v8-options | grep -B0 -A1 stack-size, stack-size, not stack_size..I am on node 20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.