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

David Holmes davidcholmes at aapt.net.au
Thu May 13 18:01:58 EDT 2010


Hanson,

Hanson Char writes:
> 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)

There are no APIs to retrieve either of those pieces of information that I
am aware of.

David

> Thanks,
> Hanson
>
> 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.
> >
> > HTH
> >
> > David Holmes
> >



More information about the Concurrency-interest mailing list