Show Table of Contents
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.RealtimeThreads instead ofjava.lang.Threads.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.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.