Chapter 36. Other Tuning Options
This section describes other places in JBoss EAP messaging that can be tuned.
Use asynchronous send acknowledgements.
If you need to send non-transactional, durable messages and do not need a guarantee that they have reached the server by the time the call to
send()returns, do not set them to be sent blocking. Instead use asynchronous send acknowledgements to get your send acknowledgements returned in a separate stream. However, in the case of a server crash, some messages might be lost.
pre-acknowledgemode, messages are acknowledged before they are sent to the client. This reduces the amount of acknowledgment traffic on the wire. However, if that client crashes, messages will not be redelivered if the client reconnects.
There is a small performance boost when you disable security by setting the
security-enabledattribute to false.
You can turn off message persistence altogether by setting
Sync transactions lazily.
falseprovides better transactional persistent performance at the expense of some possibility of loss of transactions on failure.
Sync non-transactional lazily.
falseprovides better non-transactional persistent performance at the expense of some possibility of loss of durable messages on failure.
Send messages non-blocking.
To avoid waiting for a network round trip for every message sent, set
falseif you are using JMS and JNDI, or set it directly on the
ServerLocatorby calling the
If you have very fast consumers, you can increase the
consumer-window-sizeto effectively disable consumer flow control.
Use the core API instead of the JMS API.
JMS operations must be translated into core operations before the server can handle them, resulting in lower performance than when you use the core API. When using the core API, try to use methods that take
SimpleStringas much as possible.
java.lang.String, does not require copying before it is written to the wire, so if you reuse
SimpleStringinstances between calls, you can avoid some unnecessary copying. Note that the core API is not portable to other brokers.