[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Optimisations: A couple of low hanging fruits going for grab
timfox
do-not-reply at jboss.com
Wed May 14 08:59:11 EDT 2008
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
More information about the jboss-dev-forums
mailing list