Skip to main content

Get thread stack size at runtime

2 replies [Last post]
claudio
Offline
Joined: 2003-06-17
Points: 0

If the java stack size is passed on command line (-Xss or ThreadStackSize), the it is easy to have a look at the value (jinfo or other command line tool)

But if the value is not informed at command line, it depends on the JDK version, OS and other variants (ergonomics) to get the real value, the java runtime is using for the stack size.

So, is possible to get the thread stack size at runtime ?

Thanks

Claudio Miranda

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
claudio
Offline
Joined: 2003-06-17
Points: 0

jinfo -flag ThreadStackSize PID

I found at another forum http://forum.java.sun.com/thread.jspa?threadID=5142702&messageID=9527748

Thanks

Claudio

claudio
Offline
Joined: 2003-06-17
Points: 0

Just to let you know, this only works with JDK 6.