I currently use ActiveMQ to serve a STOMP message queue with several topics. As we are now starting to get several thousand connections to the queue, I have been trying to implement NIO to reduce the number of threads used.
Following the documentation, I have modified my configuration to add NIO as follows:
However, when testing I am still getting two threads per connection - one named NIO Transport Thread and another named BrokerService.
I was expecting thread use to be much lower using NIO. Therefore - am I wrong in my expectations, or are there more configuration changes required for NIO?
Thanks