Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java stack size and memory tuning

843811Nov 10 2003 — edited Nov 11 2003

I've seen conflicting info on the topic of the -Xss parameter and
stacksize management.

What does this parameter control exactly. Does it specify the native
stack size or the java stack size?

Does it specify the size of the stack for each thread within the vm or
does it specify the size of a single stack that all the threads use and
for which the vm does memory management on behalf of the threads?

What is the relationship between the stack(s) and the heap. Do they
exist in separate memory areas? I assume they compete with each other
for system memory resources - maybe not.

Sorry to be flinging what seem like fairly basic questions. If anyone
knows of a helpful white paper that explains runtime memory management
and tuning approaches that would be great.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2003
Added on Nov 10 2003
4 comments
790 views