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

Hanson Char hanson.char at gmail.com
Tue Nov 30 17:49:55 EST 2010


Turns out there is something in jdk 1.6 that can find out the default thread
stack size of a running JVM:

  jinfo -flag ThreadStackSize <PID>

Regards,
Hanson

On Thu, May 13, 2010 at 3:01 PM, David Holmes <davidcholmes at aapt.net.au>wrote:

> 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
> > >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20101130/f7f7b4ca/attachment.html>


More information about the Concurrency-interest mailing list