users@glassfish.java.net

Re: Server is hanging when multiple users logged in.

From: Mitesh Meswani <Mitesh.Meswani_at_Sun.COM>
Date: Thu, 26 Mar 2009 11:42:52 -0700
From the attached thread dump[1], it seems that you have multiple threads blocked inside db2 driver code while acquiring a connection. Were you using the same version of driver/db with weblogic also?

[1]
Thread 7177: (state = BLOCKED)
- com.ibm.db2.jcc.t4.ac.j() @bci=5, line=2825 (Compiled frame)
- com.ibm.db2.jcc.DB2XAConnection.getConnection() @bci=99, line=201 (Interpreted frame)
- com.sun.gjc.spi.ManagedConnection.getActualConnection() @bci=28, line=572 (Compiled frame)
- com.sun.gjc.spi.ManagedConnectionFactory.isValid(com.sun.gjc.spi.ManagedConnection) @bci=65, line=290 (Compiled frame)
- com.sun.gjc.spi.ManagedConnectionFactory.getInvalidConnections(java.util.Set) @bci=38, line=246 (Compiled frame)
- com.sun.enterprise.resource.AbstractConnectorAllocator.getInvalidConnections(java.util.Set) @bci=18, line=99 (Compiled frame)
- com.sun.enterprise.resource.AbstractConnectorAllocator.isConnectionValid(com.sun.enterprise.resource.ResourceHandle) @bci=21, line=111 (Interpreted frame)
- com.sun.enterprise.resource.AbstractResourcePool.isConnectionValid(com.sun.enterprise.resource.ResourceHandle, com.sun.enterprise.resource.ResourceAllocator) @bci=86, line=719 (Compiled frame)
- com.sun.enterprise.resource.AbstractResourcePool.getUnenlistedResource(com.sun.enterprise.resource.ResourceSpec, com.sun.enterprise.resource.ResourceAllocator, javax.transaction.Transaction) @bci=17, line=665 (Compiled frame)
- com.sun.enterprise.resource.AbstractResourcePool.internalGetResource(com.sun.enterprise.resource.ResourceSpec, com.sun.enterprise.resource.ResourceAllocator, javax.transaction.Transaction) @bci=309, line=606 (Compiled frame)
- com.sun.enterprise.resource.AbstractResourcePool.getResource(com.sun.enterprise.resource.ResourceSpec, com.sun.enterprise.resource.ResourceAllocator, javax.transaction.Transaction) @bci=37, line=455 (Compiled frame)
- com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(com.sun.enterprise.resource.ResourceSpec, com.sun.enterprise.resource.ResourceAllocator, com.sun.enterprise.resource.ClientSecurityInfo, javax.transaction.Transaction) @bci=16, line=248 (Compiled frame)
- com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(javax.resource.spi.ManagedConnectionFactory, com.sun.enterprise.deployment.ResourcePrincipal, javax.resource.spi.ConnectionRequestInfo, boolean, java.lang.String, java.lang.Object, boolean) @bci=453, line=337 (Compiled frame)
- com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ConnectionRequestInfo, java.lang.String, java.lang.Object) @bci=83, line=189 (Compiled frame)
- com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ConnectionRequestInfo, java.lang.String) @bci=5, line=165 (Compiled frame)
- com.sun.gjc.spi.base.DataSource.getConnection() @bci=9, line=108 (Compiled frame)
- com.sun.jdo.spi.persistence.support.sqlstore.ejb.TransactionHelperImpl.getConnection(java.lang.Object, java.lang.String, java.lang.String) @bci=22, line=212 (Interpreted frame)
- com.sun.jdo.spi.persistence.support.sqlstore.ejb.EJBHelper.getConnection(java.lang.Object, java.lang.String, java.lang.String) @bci=6, line=197 (Interpreted frame)
- com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.getConnectionInternal() @bci=32, line=1447 (Interpreted frame)
- com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.getConnection() @bci=44, line=1358 (Interpreted frame)
- com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.executeQuery(com.sun.jdo.spi.persistence.support.sqlstore.PersistenceManager, com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.SelectStatement, com.sun.jdo.spi.persistence.support.sqlstore.sql.concurrency.Concurrency, com.sun.jdo.spi.persistence.support.sqlstore.ValueFetcher) @bci=106, line=447 (Interpreted frame)
- com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.retrieve(com.sun.jdo.spi.persistence.support.sqlstore.PersistenceManager, com.sun.jdo.spi.persistence.support.sqlstore.RetrieveDesc, com.sun.jdo.spi.persistence.support.sqlstore.ValueFetcher) @bci=118, line=376 (Interpreted frame)
- com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.retrieve(com.sun.jdo.spi.persistence.support.sqlstore.RetrieveDesc, com.sun.jdo.spi.persistence.support.sqlstore.ValueFetcher) @bci=16, line=1118 (Interpreted frame)
- com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.doExecute(com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.ParameterTable) @bci=131, line=689 (Interpreted frame)
- com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.executeWithArray(java.lang.Object[]) @bci=38, line=607 (Interpreted frame)
- com.Thre.XYZ.uma.entity.impl.ActiveDocumentsBean1907061939_ConcreteImpl.ejbFindByUserID(java.lang.String) @bci=146, line=232 (Interpreted frame)