<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
MDBs using RemoteJMSProvider seem to stop under large number of MDBs
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/mikemil">Mike Miller</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/546247#546247">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><div><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>We are in the process of migrating  from JBoss MQ over to JBoss Messaging, running on 4.2.3 GA.   We are  using the jboss-remoting.jar from 2.2.3.  A little background, we have a  Central server and many Store servers.   We create transactions on the  Store servers, which then save to our database and then put the  transaction data on a local store queue.   On our Central server, we  have a set of MDBs using a Remote JMS Provider definition to actually  pull the transaction data out of the queue (mdb) and save it to our  Central server.    We have about 400 stores running and our Central  server.   For the most part, we are using the base configuration from  the JBoss documentation, with the exception that we are in a firewall  configuration so in the remoting configuration, we are setting the  secondaryBindPort and secondaryControlPort values to the same value,  27900 - based on some previous forum responses from Ron Sigal in the Remoting forums.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min- padding: 0px;">Our Central server deploys 400 MDBs, one pointed at each store server to pull transaction data from the Store servers.   Once the Central server gets started successfully we intermittently encounter problems where transaction stops being delivered to our MDBs running on Central.   This problem does not happen with lower numbers of Store servers, like 200.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min- padding: 0px;">We have noticed thru using JConsole that for each MDB pointing at a store, we are getting 4-5 threads created for each store: </p><p style="min- padding: 0px;">1) Connection Consumer for dest JBossQueue(mdb name here)</p><p style="min- padding: 0px;">2) control:Socket[addr=store1/ipaddr of store1, port=27900, localport=xyz...]   --> appears only when store connected</p><p style="min- padding: 0px;">3) control:Socket[addr=store1/ipaddr of store1, port=27900, localport=abc...]   --> appears only when store connected</p><p style="min- padding: 0px;">4) WorkerThread#[idaddr of store1] --> this gets started the first time transaction data arrives from Store 1 and does not appear to go away</p><p style="min- padding: 0px;">5) The MDB actually runs in a thread "JMS SessionPool Worker-z"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min- padding: 0px;">Is there some limitation on the number of remote MDBs that messaging can handle reliably?    Exact same code, config etc works with smaller numbers of MDBs.   With 400 MDBs it looks like just those could generate upto 2000 threads, assuming all stores are connected to our Central server.  Does this pose any problems for Messaging?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></div></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/546247#546247">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>