QOTD: Java Thread vs. Java Heap Space
Join the DZone community and get the full member experience.Join For Free
This is also a typical interview question I ask to new technical candidates (senior role). I recommend that you attempt to provide your own response before looking at the answer.
- For a 32-bit JVM, the Java heap space is in a race with the native heap, including the thread capacity
- For a 64-bit JVM, the thread capacity will mainly depend of your OS physical & virtual memory availability along with your current OS process related tuning parameters
Published at DZone with permission of Pierre - Hugues Charbonneau, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.