Bugs item #665394, was opened at 2003-01-09 15:46
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=665394&group_id=22866
Category: JBossMQ
Group: v3.2
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Elias Ross (genman)
Assigned to: Nobody/Anonymous (nobody)
Summary: MDB pool size is not bounded -- Is the max size being read?
Initial Comment:
I don't really want to create 100 MDB for my
application, so I changed the standardjboss.xml
configuration (like I did in 3.2):
--- standardjboss.xml Fri Dec 20 18:47:58 2002
+++
/home/eross/src/javapackages/jboss/server/default/conf/standardjboss.xml
Thu Jan 9 14:22:38 2003
@@ -774,7 +774,7 @@
<persistence-manager></persistence-manager>
<transaction-manager>org.jboss.tm.TxManager</transaction-manager>
<container-pool-conf>
- <MaximumSize>100</MaximumSize>
+ <MaximumSize>5</MaximumSize>
</container-pool-conf>
</container-configuration>
This doesn't seem to work and I end up with hundreds of
threads (and eventually run out of sockets...)
Actually setting this number to -1 or something else
doesn't create any error...
I end up with this in the logs:
2003-01-09 22:32:54,997 ERROR [JMSContainerInvoker]
Exception in JMSCI message listener
javax.ejb.TransactionRolledbackLocalException: null;
CausedByException is:
Cannot authenticate user; - nested throwable:
(java.net.ConnectException: Connection refused);
CausedByException is:
null; CausedByException is:
Cannot authenticate user; - nested throwable:
(java.net.ConnectException: Connection refused)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:228)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:237)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:101)
at
org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:100)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:154)
at
org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:311)
at
org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:697)
at
org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:985)
at
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:241)
at
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:601)
at
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:415)
at org.jboss.mq.SpySession.run(SpySession.java:293)
at
org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:177)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:655)
at java.lang.Thread.run(Thread.java:536)
javax.ejb.EJBException: null; CausedByException is:
Cannot authenticate user; - nested throwable:
(java.net.ConnectException: Connection refused)
----------------------------------------------------------------------
Comment By: Elias Ross (genman)
Date: 2003-01-09 18:38
Message:
Logged In: YES
user_id=556458
In my application, I create a JMS connection in my
ejbCreate() method. Apparently, this is where things start
to get out of control...
It appears to be a configuration error (*grin*) with how the
JMS connection pool is larger than the MDB pool. (I was
configuring things like I did in JBoss 3.0 to reduce the
pool size.) If the MDB pool is too small, then new
instances are always thrown away. This is a user area, but
hard to diagnose.
In such situations, I notice that ejbRemove() is never
called for my MDB, even though there are literally hundreds
of new instances apparently thrown out.
I guess I'd like someone to verify that ejbRemove is
eventually called for a MDB that's thrown out of the
AbstractPool...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=665394&group_id=22866
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development