Forum Stats

  • 3,757,803 Users
  • 2,251,268 Discussions
  • 7,869,920 Comments

Discussions

Do I really need 24 message queues, message receiver classes, message sende

I have a Java EE system. The deployment server is Jetty. Currently java runs only in one of the 24 cores of the server (12 cores x 2 (hyper threading)). As I understand it from [this thread|http://stackoverflow.com/questions/533783/why-spawning-threads-in-j2ee-container-is-discouraged] you have to use JMS or something similar to spawn threads. I have to spawn 24 threads in order to use all 24 cores. If I do it this way for two message queues, two message receiver classes and two message sender classes the job takes half the time it took originally.

Do I really need 24 message queues, message receiver classes, message sender classes?
This discussion has been closed.