There are a couple of areas for valuable optimisation if
anyone would like to take them:
1)
One is that generating JMS message ids before sending can
slow things down significantly (maybe 5%??).
I noticed that if i set producer.setDisableMessageID(true)
on the producer before sending performance increases
significantly
I am sending 1k non persistent bytes messages from client
one my laptop to server on another machine with gigabit lan
and i can get about 45K msgs / sec , but this
drops to about 40K or less with disablemessageid set to
false
I suspect this is due to the following in
JBossMessageProducer:
| String id = UUID.randomUUID().toString();
| bm.setJMSMessageID("ID:" + id);
|
which involves generation and two (?) string copies.
What we need is a way of generating the id without doing
String copies - you could take the same UUID algorithm and
apply it directly to a SimpleString instance (with the id
already included at the beginning).
2) Text messages. Currently text message bodies are encoded
using UTF-8 with the encoding methods on the MINA IoBuffer
class. This is slow (as mentioned in another thread).
I'm sure there is great scope to speed this up.
View the original post : http://www.jboss.com/index.html?
module=bb&op=viewtopic&p=4150720#4150720
Reply to the post : http://www.jboss.com/index.
html?module=bb&op=posting&mode=reply&p=4150720
a>
_______________________________________________
jboss-dev-forums mailing list
jboss-dev-forums lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-dev-foru
ms
|