Author |
Message
|
swissclash79 |
Posted: Thu Feb 11, 2010 7:36 am Post subject: JBoss MDB & Websphere MQ / Number of MDB instances |
|
|
Newbie
Joined: 11 Feb 2010 Posts: 5
|
Hello everybody
I am working on a project that uses Websphere MQ (version 6) in JBoss. There are some MDB's that get messages from different queues and process.
I successfully developped and integrated the MDB's in JBoss using the helpful wiki page IntegrationWithWebSphereMQSeries in jboss wiki.
Everything is working fine.
But there is a performance issues. The system processes too few messages. My first analysis shows that there are only 10 mdb instances that get the messages. How do I tell JBoss to create more instances?
My system is able to handle more load produced by more instances.
I am using JBoss 4.2.3 and Websphere MQ version 6.
Thank you for any help in advance
Best regards
Christian |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 11, 2010 7:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Presumably you configure the number of listener threads on the mdb listener. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 11, 2010 8:18 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
mqjeff wrote: |
Presumably you configure the number of listener threads on the mdb listener. |
And if using client connections to MQ make sure to up the number of max channels/max active channels according to your needs. _________________ MQ & Broker admin |
|
Back to top |
|
 |
swissclash79 |
Posted: Fri Feb 12, 2010 3:17 am Post subject: |
|
|
Newbie
Joined: 11 Feb 2010 Posts: 5
|
mqjeff wrote: |
Presumably you configure the number of listener threads on the mdb listener. |
Thanks a lot for the quick answers!
@mqjeff
Where do I configure the number of listener threads in JBoss? Is there a speciall thread pool for that?
Best regards
Christian |
|
Back to top |
|
 |
anilit99 |
Posted: Fri Feb 12, 2010 9:29 am Post subject: |
|
|
 Voyager
Joined: 28 May 2009 Posts: 75 Location: London, UK
|
I am not sure whether you are making use of the ejb3-interceptors-aop.xml to configure your mdbs, but thats the place you top up your connections.
Check for this node :
Code: |
<annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
@org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=30, timeout=10000)
</annotation>
|
cheers _________________ "I almost care !" |
|
Back to top |
|
 |
swissclash79 |
Posted: Mon Feb 15, 2010 1:59 am Post subject: |
|
|
Newbie
Joined: 11 Feb 2010 Posts: 5
|
anilit99 wrote: |
Check for this node :
Code: |
<annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
@org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=30, timeout=10000)
</annotation>
|
|
Thank you for the tipp. I increased the maxSize value in the domain section "Message Driven Bean" but there was no improvement, unfortunatelly.
Best regards
Christian |
|
Back to top |
|
 |
swissclash79 |
Posted: Mon Feb 15, 2010 8:02 am Post subject: |
|
|
Newbie
Joined: 11 Feb 2010 Posts: 5
|
Finally I found the solution myself.
In the activation config of the mdb itself there is a property called maxPoolDepth which defines the number of available mdb instances. But it is important that the aop-invoker has defined a suitable amount of threads to call those mdb instances.
Code: |
<activation-config-property>
<activation-config-property-name>maxPoolDepth</activation-config-property-name>
<activation-config-property-value>20</activation-config-property-value>
</activation-config-property> |
Best regards
Christian |
|
Back to top |
|
 |
anilit99 |
Posted: Mon Feb 15, 2010 8:19 am Post subject: |
|
|
 Voyager
Joined: 28 May 2009 Posts: 75 Location: London, UK
|
umm thats weird, because the config which I posted did the magic for me. Can you please explain your solution ?
thanks
Anil _________________ "I almost care !" |
|
Back to top |
|
 |
swissclash79 |
Posted: Tue Feb 16, 2010 5:23 am Post subject: |
|
|
Newbie
Joined: 11 Feb 2010 Posts: 5
|
|
Back to top |
|
 |
|