You have been hired by Acme Ltd to improve the performance of a Stock Trading application, which uses a JMS system for querying stock values, and to issue orders. The company has recently migrated to the HornetQ messaging system and has a performance goal of delivering 3 K (3000) messages per second. The average size of JMS messages is 1 KB.
The specifications of the system are to persist JMS messages for stock orders but not for stock quotation queries (which account for 80% of the traffic) where it can be acceptable for messages to be lost, in case of a system crash.
JBoss 6.0.0 M5 with HornetQ 2.1.1 installed
Linux System Fedora running on Xeon 4 Dual Core 32 Mb
The Acme project team has installed HornetQ with default values and, after a system warm-up, has launched a first batch of orders: