-
1. Re: DEADLOCK with JBoss 2.4.4
shortpasta Apr 21, 2002 5:48 AM (in response to danmartin)Same problem here..... 2.44 & mySql w InnoDb
-
2. Re: DEADLOCK with JBoss 2.4.4
michel1 Apr 27, 2002 9:06 AM (in response to danmartin)We experienced something similar. In our case, it turned out to be an overflow of the JMS queue. When the JMS queue is full, the EJB sending the notification cannot deliver the JMS message, so it blocks. The clients that respond to the messages delivered by the JMS queue required a resource that was held by one the of message senders. So they blocked. Because of this, no slots become available in the JMS queue, so we experienced a nice deadlock.
If you have the same kind of deadlock, try to measure when it occurs: in our case, it occurred under heavy load and always with *exactly* the same number of transactions occurring before the deadlock.
Solution: seriously boost the number of JMS slots in the $jboss/conf/standardjboss.xml. See below for an example, you need to modify the 1000 field.
<container-configuration>
<container-name>Standard Message Driven Bean</container-name>
<call-logging>false</call-logging>
<container-invoker>org.jboss.ejb.plugins.jms.JMSContainerInvoker</container-invoker>
<container-interceptors>
org.jboss.ejb.plugins.LogInterceptor
org.jboss.ejb.plugins.SecurityInterceptor
<!-- CMT -->
org.jboss.ejb.plugins.TxInterceptorCMT
org.jboss.ejb.plugins.MetricsInterceptor
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
<!-- BMT -->
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
org.jboss.ejb.plugins.MetricsInterceptor
</container-interceptors>
<instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
<instance-cache></instance-cache>
<persistence-manager></persistence-manager>
<transaction-manager>org.jboss.tm.TxManager</transaction-manager>
<container-invoker-conf>
DefaultJMSProvider
StdJMSPool
1000
1
True
</container-invoker-conf>
<container-pool-conf>
100
10
</container-pool-conf>
</container-configuration> -
3. Re: DEADLOCK with JBoss 2.4.4
danmartin May 6, 2002 3:14 AM (in response to danmartin)Thanks Michel,
now the problem seems fixed at 80%
We still have a problem when, during a server long-time task, a different client makes a call on one EJB involved with this task.
Sometimes seems that the second client locks the EJB table when making the call so, when the first task needs to access the same EJB to store new data, the container immediately throws a deadlock exception and cmp attributes are not updated.
As soon as I can, I will provide a JBoss stack trace to add some info about it.
Thanks a lot for the help,
Daniele