Coda
stranger
Reged: 03/27/06
Posts: 1
Loc: Australia
|
|
I need to know the effects of the thread stack size using the JVM option "-Xss". There is not much documentation available for Sun JRE1.3.1 and 1.4.2 on Solaris (SPARC) and Windows. The other non-standard JVM options are pretty much clear. I need to know some details about the -Xss option. Setting this value too low or too high has varied effects on application performance and behaviour.
Requesting folks to assist.
Thanks
|
arulk
member
Reged: 01/10/06
Posts: 163
Loc: Australia
|
|
Each thread in the JVM gets a stack. The stack size will limit the number of threads that you can have. If you have too big of a stack size and you will run out of memory as each thread is allocated more memory than it requires.
I have seen some server start up scripts with stack size to 2048k. This value should be appropriate for most situations because of the stack size is too small, then you will get a stack overflow exception.
Also, check your operating system settings on the stack size as well.
-------------------- 400+ Java Interview Q&A with lots of diagrams,code..
|