Hi, I have this problem too. It happens with AMQ 5.0.0 and 5.1.0. Works fine with 4.1.1 and 4.1.2. I can see the number of threads using the windows task manager, and it's not good :-) +2000 threads.
My client application is a producer, and it sends thousands of messages to thousands of differents topics. There are no subscribers to those topics. Async send is set to false. Even when the client application is shutdown the threads are kept alive. There is surely a thread leak, and maybe there is a direct relationship with the number of topics created. I've read several topics here, JIRA issues, and an article about AMQ thread handling, but did not come out with a clue. Best regards, Danilo -- View this message in context: http://www.nabble.com/java.lang.OutOfMemoryError%3A-unable-to-create-new-native-thread-on-AMQ-5.0-tp17005441s2354p17207910.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.