Hacker News new | ask | show | jobs
by user5994461 1800 days ago
>>> The default stack size (on 64-bit Linux) is 1MB

The default thread stack size is 8 or 10 MB on most Linux.

The exception is Alpine that's below 1 MB.

2 comments

To clarify, the 1MB is the default stack size for threads with the JVM on 64-bit Linux.

Search for "-Xss": https://docs.oracle.com/en/java/javase/16/docs/specs/man/jav...

The default reserved size is 8mb. The allocated size starts at a page (usually 4k), and grows in page sized increments as you use it.