Maximum number of threads that can be spawned

HiWhat is the maximum number of threads that can be spawned from a 64-bit jvm with jdk 1.5? The application runs on SunOS 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-480RThanks
[209 byte] By [shannaraa] at [2007-11-27 4:49:12]
# 1
Try it and find out.
cooper6a at 2007-7-12 10:02:16 > top of Java-index,Core,Core APIs...
# 2
hi i remember there will be a 1 to 1 mapping between native thread and java thread , so in that case theoratically it should be equal to max integer value (as the thread id is unique number) practically it will be less. let me know the number if u try this :-)
bhvijaya at 2007-7-12 10:02:16 > top of Java-index,Core,Core APIs...
# 3
You'll probably run out of memory before you hit the max number.You can adjust the thread memory footprint with this JVM setting:-XssnSet thread stack size.
BenHill70a at 2007-7-12 10:02:16 > top of Java-index,Core,Core APIs...