If you want to increase or make maximum no of threads that a JVM runs on a single instance.
If so then:
The short answer is that it's limited by how much virtual
address(VA) space you have, both address size (32/64) and swap.
The primary consumers of VA space are the
java heap and
associated C heap data structures, and
thread stacks and
(fairly small) per-thread C data structrure. A small amount of java heap space is consumed by Thread instances.
The default thread stack size is 512kb for the 32-bit jvm
and 1mb for the 64-bit jvm on solaris sparc. You can gain more VA
space for thread stacks by making the java heap smaller.
java -Xms2g -Xmx2g MAXTHREADS
On 32-bit sparc, you can typically get up to 4k or so threads
before you run out of VA (maximum user VA is ~3.8gb). On
64-bit systems, the amount of swap is the effective limit:
I know of an experiment that successfully created 160k threads.
HTH