On Thu, Jan 8, 2009 at 1:52 PM, Jay Ballinger <jay.ballin...@gmail.com> wrote:
> - When a thread is created, does it grab all of the stack memory, or can
> the stack memory start small and grow to the default or -Xss size?

If I'm not mistaken the memory is allocated, but it is virtual memory,
so unless it is actually used there is no penalty.

The only problem with allocating too much stack space is that you can
run out of address space on a 32 bit JVM.

With typically 2GB max addressable for the app and 10 MBytes per stack
you are limited to 200 threads.


resin-interest mailing list

Reply via email to