What are the maximum number of threads which can be maintained by the Java virtual machine?
I did not explain this in my original question, but I am trying to benchm
There will be some limits imposed by your operating system and hardware configuration.
To raise the number of concurrent threads you should lower the default stacksize java -Xss 64k
.
ulimit -a
will give you the configured limits, for user processes and memorycat /proc/sys/kernel/pid_max
- a maximum of 32k processes.cat /proc/sys/kernel/threads-max