I would just point out that if you have thousands of threads, you will hit another limit due to the stack-space per-thread (native memory.)
If a broker is running in a 32-bit JVM (max 2^^32 ~ 4GB addressable), then increasing the maxheap space (as mentioned in the orginal post) reduces the portion of 4GB that you have left for the stack-per-thread. So - all other things being equal - increasing the maxheapsize means that you can handle *fewer threads* in that JVM. ----- Michael Hayes B.Sc. (NUI), M.Sc. (DCU), SCSA SCNA -- View this message in context: http://activemq.2283324.n4.nabble.com/java-io-IOException-Too-many-open-files-v5-4-2-tp4643701p4647881.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.