JBossESB performance
jumanji Jun 20, 2007 8:47 AMHi, everybody!
I'm trying to find out if JBossESB meets our client's requirements. Among other things they want - well, you know - "fast esb". And I've got some problems with it.
I've run some tests with simple configuration: just 2 services, first one receives esb-unaware message (jms) ant routes in to the second one (using StaticRouter). Service 2 displays message on console (using NotifyConsole).
jbossesb.xml file looks like that:
<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.xsd" parameterReloadSecs="5"> <providers> <jms-provider name="JBossMQ" connection-factory="ConnectionFactory" jndi-context-factory="org.jnp.interfaces.NamingContextFactory" jndi-URL="localhost" > <jms-bus busid="quickstartGwChannel"> <jms-message-filter dest-type="QUEUE" dest-name="queue/frontoffice_Request" /> </jms-bus> <jms-bus busid="quickstartEsbChannel"> <jms-message-filter dest-type="QUEUE" dest-name="queue/B" /> </jms-bus> <jms-bus busid="channel"> <jms-message-filter dest-type="QUEUE" dest-name="queue/A" /> </jms-bus> </jms-provider> </providers> <services> <service category="FirstServiceESB" name="SimpleListener" description="Hello World"> <listeners> <jms-listener name="JMS-Gateway" busidref="quickstartGwChannel" maxThreads="1" is-gateway="true" /> <jms-listener name="helloWorld" busidref="quickstartEsbChannel" maxThreads="1" /> </listeners> <actions> <action name="routeAction" class="org.jboss.soa.esb.actions.StaticRouter"> <property name="destinations"> <route-to service-category="SecondServiceESB" service-name="SecondService"/> </property> </action> </actions> </service> <service category="SecondServiceESB" name="SecondService" description="Hello World"> <listeners> <jms-listener name="tatata" busidref="channel" maxThreads="1" /> </listeners> <actions> <action name="notificationAction" class="org.jboss.soa.esb.actions.Notifier"> <property name="okMethod" value="notifyOK"/> <property name="notification-details"> <NotificationList type="OK"> <target class="NotifyConsole"/> </NotificationList> </property> </action> </actions> </service> </services> </jbossesb>
I put 200 short messages (about 2 KB) in jms queue "queue/frontoffice_Request" ant it takes esb (v. 4.0 GA) about 30 seconds to handle them. The question is - "is this normal?" Or I'm just doing something wrong.
I've tried JBossESB 4.2 MR2, too. It is faster, but not significantly (200 messages - 20 seconds).
Thank you for answers and sorry for my English -))))),
J