Hacker News new | ask | show | jobs
by jankotek 1673 days ago
Java uses some memory for stack, about 1MB for each thread.
2 comments

This is configurable, and 1MB is very generous. I think the JVM automatically grows the stack size as needed nowadays and starts low.
This doesn't in practice limit scaling though as it's linear and small in absolute terms vs what you can put in a server.