Broker is non-persistent. I am sending very small messages and the measure
is only between when I send the message and at the other end when I receive
the message. Consumers and producers are not busy at this point.
I am not re-creating sessions, I am using thread local and I am caching
sessions.
First, if the broker is using persistence, try turning off persistence
(persistent=false in the broker tag). If that eliminates the delay, it's
related to storage. If not, storage is not involved.
Using a java profiler, such as Yourkit, also comes to mind.
Is there any benchmark against which t