Chapter 6. Increase Message Throughput with Performance Tuning
6.1. Run the JMS Client with real-time Java
To achieve more deterministic behavior, the JMS Client can be run in a Realtime Java environment.
- The client must be run on a realtime operating system, and supported by your realtime java vendor. Red Hat supports only Sun and IBM implementations.
- Place the realtime .jar files provided by your vendor in the classpath.
- Set the following JVM argument:
-Dqpid.thread_factory="org.apache.qpid.thread.RealtimeThreadFactory"
This ensures that the JMS Client will usejavax.realtime.RealtimeThread
s instead ofjava.lang.Thread
s.Optionally, the priority of the Threads can be set using:-Dqpid.rt_thread_priority=30
By default, the priority is set at 20. - Based on your workload, the JVM will need to be tuned to achieve the best results. Refer to your vendor's JVM tuning guide for more information.