Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld >> Enterprise Java

Pages: 1
Coda
stranger


Reged: 03/27/06
Posts: 1
Loc: Australia
Thread stack size using the "-Xss" JVM option
      #30206 - 03/27/06 07:33 AM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
arulk
member


Reged: 01/10/06
Posts: 163
Loc: Australia
Re: Thread stack size using the "-Xss" JVM option [Re: Coda]
      #30222 - 03/28/06 01:01 AM

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..


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 33 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 7567

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5