[concurrency-interest] Thread Stack Size and Thread Local Data

Hanson Char hanson.char at gmail.com
Thu May 13 12:21:57 EDT 2010

Hi David,

Any recommended way to find out:
a) the default thread stack size used in a running JVM
b) the actual thread stack size of a thread (after it is created with
a requested stack size)


On Tue, Mar 23, 2010 at 3:32 PM, David Holmes <davidcholmes at aapt.net.au> wrote:
> Hi Ramesh,
> The default Java thread stack size is platform specific but can be set with
> -Xss parameter on JVM startup (or can be set for individual threads via
> their constructor). This stack size is not related to that seen in ulimit
> because the VM explicitly sets the stack size when native threads are
> created.
> As for "Thread Local Data" I'm not sure exactly what you mean by that.
> David Holmes

More information about the Concurrency-interest mailing list