Hello All,

The stress test of our JBoss application results in application deadlocks.
The test fails even when there are 6 concurrent users.

Find enclosed are the stack trace of the deadlock detection by the JBoss
server. Please let me know in case you need any additional information to
analyse/understand the issue.

Can anybody help us resolve this. Thanks in advance.

rgds
MS

2004-01-06 13:00:17,653 ERROR [STDERR] [Tue Jan 06 13:00:17 PST
2004][ERROR][145
f5721f530d8fc4383a15501859e205105c7e1][javax.ejb.EJBException:12]: null;
CausedB
yException is:
    Application deadlock detected,
resource=org.jboss.ejb.plugins.lock.QueuedPes
[EMAIL PROTECTED], bean=MapEntity, id=28, refs=5,
tx=TransactionImpl:XidIm
pl [FormatId=257, GlobalId=woodstock.plx.com//69, BranchQual=],
synched=Thread[R
MI TCP Connection(12)-10.21.80.24,5,RMI Runtime], timeout=5000,
queue=[TXLOCK wa
itingTx=TransactionImpl:XidImpl [FormatId=257,
GlobalId=woodstock.plx.com//71, B
ranchQual=] id=0 thread=Thread[RMI TCP Connection(8)-10.21.80.24,5,RMI
Runtime]
queued=true, TXLOCK waitingTx=TransactionImpl:XidImpl [FormatId=257,
GlobalId=wo
odstock.plx.com//73, BranchQual=] id=0 thread=Thread[RMI TCP
Connection(3)-10.21
.80.24,5,RMI Runtime] queued=true], holder=TransactionImpl:XidImpl
[FormatId=257
, GlobalId=woodstock.plx.com//75, BranchQual=],
waitingResource=org.jboss.ejb.pl
[EMAIL PROTECTED], bean=MapNames, id=13, refs=3,
tx=Tr
ansactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//75,
BranchQual=
], synched=null, timeout=5000, queue=[TXLOCK
waitingTx=TransactionImpl:XidImpl [
FormatId=257, GlobalId=woodstock.plx.com//77, BranchQual=] id=0
thread=Thread[RM
I TCP Connection(11)-10.21.80.24,5,RMI Runtime] queued=true, TXLOCK
waitingTx=Tr
ansactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//69,
BranchQual=
] id=0 thread=Thread[RMI TCP Connection(6)-10.21.80.24,5,RMI Runtime]
queued=tru
e], waitingResourceHolder=TransactionImpl:XidImpl [FormatId=257,
GlobalId=woodst
ock.plx.com//75, BranchQual=]
2004-01-06 13:00:17,673 ERROR [STDERR] [Tue Jan 06 13:00:17 PST 2004][CALL
STACK
][145f5721f530d8fc4383a15501859e205105c7e1][javax.ejb.EJBException: null;
Caused
ByException is:
    Application deadlock detected,
resource=org.jboss.ejb.plugins.lock.QueuedPes
[EMAIL PROTECTED], bean=MapEntity, id=28, refs=5,
tx=TransactionImpl:XidIm
pl [FormatId=257, GlobalId=woodstock.plx.com//69, BranchQual=],
synched=Thread[R
MI TCP Connection(12)-10.21.80.24,5,RMI Runtime], timeout=5000,
queue=[TXLOCK wa
itingTx=TransactionImpl:XidImpl [FormatId=257,
GlobalId=woodstock.plx.com//71, B
ranchQual=] id=0 thread=Thread[RMI TCP Connection(8)-10.21.80.24,5,RMI
Runtime]
queued=true, TXLOCK waitingTx=TransactionImpl:XidImpl [FormatId=257,
GlobalId=wo
odstock.plx.com//73, BranchQual=] id=0 thread=Thread[RMI TCP
Connection(3)-10.21
.80.24,5,RMI Runtime] queued=true], holder=TransactionImpl:XidImpl
[FormatId=257
, GlobalId=woodstock.plx.com//75, BranchQual=],
waitingResource=org.jboss.ejb.pl
[EMAIL PROTECTED], bean=MapNames, id=13, refs=3,
tx=Tr
ansactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//75,
BranchQual=
], synched=null, timeout=5000, queue=[TXLOCK
waitingTx=TransactionImpl:XidImpl [
FormatId=257, GlobalId=woodstock.plx.com//77, BranchQual=] id=0
thread=Thread[RM
I TCP Connection(11)-10.21.80.24,5,RMI Runtime] queued=true, TXLOCK
waitingTx=Tr
ansactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//69,
BranchQual=
] id=0 thread=Thread[RMI TCP Connection(6)-10.21.80.24,5,RMI Runtime]
queued=tru
e], waitingResourceHolder=TransactionImpl:XidImpl [FormatId=257,
GlobalId=woodst
ock.plx.com//75, BranchQual=]
    at
org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:
386)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
    at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFi
nderInterceptor.java:122)
    at
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionCo
ntainer.java:331)
    at org.jboss.ejb.Container.invoke(Container.java:700)
    at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFa
ctory.java:375)
    at
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSession
Proxy.java:83)
    at $Proxy141.setMap(Unknown Source)
    at
com.plx.efw.common.command.MapSetCommand.executeCommand(MapSetCommand.jav
a:71)
    at
com.plx.efw.common.command.SystemCommand.execute(SystemCommand.java:66)
    at
com.plx.framework.command.CommandServer.executeCommand(CommandServer.java
:91)
    at
com.plx.framework.command.CommandServer.execute(CommandServer.java:66)
    at
com.plx.efw.server.command.EJBCommandServerBean.execute(EJBCommandServerB
ean.java:160)
    at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(State
lessSessionContainer.java:683)
    at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(C
achedConnectionInterceptor.java:185)
    at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stateles
sSessionInstanceInterceptor.java:72)
    at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxIntercep
tor.java:84)
    at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorC
MT.java:267)
    at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
    at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java
:118)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFi
nderInterceptor.java:122)
    at
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionCo
ntainer.java:331)
    at org.jboss.ejb.Container.invoke(Container.java:700)
    at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDis
patcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
    at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
    at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.jav
a:701)
    at java.lang.Thread.run(Thread.java:534)
org.jboss.util.deadlock.ApplicationDeadlockException: Application deadlock
detec
ted, [EMAIL PROTECTED],
bean=
MapEntity, id=28, refs=5, tx=TransactionImpl:XidImpl [FormatId=257,
GlobalId=woo
dstock.plx.com//69, BranchQual=], synched=Thread[RMI TCP
Connection(12)-10.21.80
.24,5,RMI Runtime], timeout=5000, queue=[TXLOCK
waitingTx=TransactionImpl:XidImp
l [FormatId=257, GlobalId=woodstock.plx.com//71, BranchQual=] id=0
thread=Thread
[RMI TCP Connection(8)-10.21.80.24,5,RMI Runtime] queued=true, TXLOCK
waitingTx=
TransactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//73,
BranchQua
l=] id=0 thread=Thread[RMI TCP Connection(3)-10.21.80.24,5,RMI Runtime]
queued=t
rue], holder=TransactionImpl:XidImpl [FormatId=257,
GlobalId=woodstock.plx.com//
75, BranchQual=],
waitingResource=org.jboss.ejb.plugins.lock.QueuedPessimisticEJ
[EMAIL PROTECTED], bean=MapNames, id=13, refs=3, tx=TransactionImpl:XidImpl
[FormatI
d=257, GlobalId=woodstock.plx.com//75, BranchQual=], synched=null,
timeout=5000,
 queue=[TXLOCK waitingTx=TransactionImpl:XidImpl [FormatId=257,
GlobalId=woodsto
ck.plx.com//77, BranchQual=] id=0 thread=Thread[RMI TCP
Connection(11)-10.21.80.
24,5,RMI Runtime] queued=true, TXLOCK waitingTx=TransactionImpl:XidImpl
[FormatI
d=257, GlobalId=woodstock.plx.com//69, BranchQual=] id=0 thread=Thread[RMI
TCP C
onnection(6)-10.21.80.24,5,RMI Runtime] queued=true],
waitingResourceHolder=Tran
sactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//75,
BranchQual=]
    at
org.jboss.util.deadlock.DeadlockDetector.deadlockDetection(DeadlockDetect
or.java:48)
    at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPessi
misticEJBLock.java:301)
    at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPess
imisticEJBLock.java:236)
    at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessim
isticEJBLock.java:183)
    at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.
java:85)
    at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInte
rceptor.java:54)
    at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxIntercep
tor.java:84)
    at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorC
MT.java:267)
    at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
    at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java
:118)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFi
nderInterceptor.java:122)
    at
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:490)
    at org.jboss.ejb.Container.invoke(Container.java:700)
    at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFa
ctory.java:375)
    at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
    at $Proxy119.getMapState(Unknown Source)
    at
com.plx.efw.server.system.SystemSessionBean.setMapById(SystemSessionBean.
java:398)
    at
com.plx.efw.server.system.SystemSessionBean.setMap(SystemSessionBean.java
:211)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(State
lessSessionContainer.java:683)
    at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(C
achedConnectionInterceptor.java:185)
    at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stateles
sSessionInstanceInterceptor.java:72)
    at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxIntercep
tor.java:84)
    at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorC
MT.java:267)
    at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
    at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java
:118)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFi
nderInterceptor.java:122)
    at
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionCo
ntainer.java:331)
    at org.jboss.ejb.Container.invoke(Container.java:700)
    at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFa
ctory.java:375)
    at
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSession
Proxy.java:83)
    at $Proxy141.setMap(Unknown Source)
    at
com.plx.efw.common.command.MapSetCommand.executeCommand(MapSetCommand.jav
a:71)
    at
com.plx.efw.common.command.SystemCommand.execute(SystemCommand.java:66)
    at
com.plx.framework.command.CommandServer.executeCommand(CommandServer.java
:91)
    at
com.plx.framework.command.CommandServer.execute(CommandServer.java:66)
    at
com.plx.efw.server.command.EJBCommandServerBean.execute(EJBCommandServerB
ean.java:160)
    at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(State
lessSessionContainer.java:683)
    at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(C
achedConnectionInterceptor.java:185)
    at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stateles
sSessionInstanceInterceptor.java:72)
    at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxIntercep
tor.java:84)
    at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorC
MT.java:267)
    at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
    at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java
:118)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFi
nderInterceptor.java:122)
    at
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionCo
ntainer.java:331)
    at org.jboss.ejb.Container.invoke(Container.java:700)
    at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDis
patcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
    at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
    at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.jav
a:701)
    at java.lang.Thread.run(Thread.java:534)
]:


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to