Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Having a quick flick through the ActiveMQ Developer Forums, it appears that there has been a few architectural issues with the way the Stomp transport has historically been implemented in AMQ.

It looks like issue AMQ-2386 may potentially resolve the problem you seem to be experiencing and it might be best checking out a revision >= 813722 of the ActiveMQ trunk to see if it fixes your problem?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.