Summary

In this chapter, we discussed various performance tuning features related to JMS and HornetQ—the JMS provider in WildFly. HornetQ is a very competent MOM that has high performance as one of its major design goals.

The following are some of the general rules for performance-tuning JMS:

  • Keep messages as small as possible
  • Avoid durable messages (if possible)
  • Use JTA to be able to batch handling messages
  • If losing messages due to failures is okay, then there are some optimizations available

Tuning HornetQ includes looking at the storage of persistent messages, where dedicated and separate disks should be used for journals and large messages. Paging sizes, flow control and message delivery options are also major factors that affect performance. As ...

Get WildFly Performance Tuning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.