IBM Java J9 v6 hardware and software limits for the number of threads on 64-bit Windows?

advertisements

Can somebody point me to documentation on hard and soft limits of number of threads J9 v6 under Windows 64 bit?

The pages at:

http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp

refer to some AIX/Linux "scaling support":

http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/topic/com.ibm.java.doc.user.aix32.60/user/scale.html

but don't seem to offer information for Windows.

Thanks


For a 32-bit VM, the thread stack size is a limiting factor, however for a 64-bit VM, the thread limit doesn't appear to be dependant on the stack size.

The simplest thing to do is to create lots of threads and see at what point it fails.

Testing on Linux 64-bit the limit appears to be about 32,000

http://vanillajava.blogspot.com/2011/07/java-what-is-limit-to-number-of-threads.html

Given most computers have only 2 - 24 logical threads, creating much more than this can mean more overhead than benefit, unless you have a heavily IO bound process.