users@glassfish.java.net

Connection Pool Resize Hangs

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 May 2008 15:02:45 PDT

My database pool is stuck resizing. The pool is hung up closing a connection. Below, Thread #1 shows the thread waiting for a connection, and Thread #2 shows the resize. This has happened about 3 times in a month. Any ideas appreciated.


Thread # 1
------------------------------------------------
        at com.sun.enterprise.resource.AbstractResourcePool.getResourceFromPool(AbstractResourcePool.java:752)
        - waiting to lock &lt;0x9d12cc60&gt; (a com.sun.enterprise.resource.SJSASResourcePool)
        at com.sun.enterprise.resource.AbstractResourcePool.getUnenlistedResource(AbstractResourcePool.java:652)
        at com.sun.enterprise.resource.AbstractResourcePool.internalGetResource(AbstractResourcePool.java:594)
        at com.sun.enterprise.resource.AbstractResourcePool.getResource(AbstractResourcePool.java:443)
        at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:248)
        at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:176)
        at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:327)
        at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:189)
        at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
        at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
        at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:108)

Thread # 2
-------------------------------------------------------------

        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at oracle.net.ns.Packet.receive(Unknown Source)
        at oracle.net.ns.DataPacket.receive(Unknown Source)
        at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
        at oracle.net.ns.NetInputStream.read(Unknown Source)
        at oracle.net.ns.NetInputStream.read(Unknown Source)
        at oracle.net.ns.NetInputStream.read(Unknown Source)
        at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1099)
        at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1070)
        at oracle.jdbc.driver.T4C7Ocommoncall.receive(T4C7Ocommoncall.java:106)
        at oracle.jdbc.driver.T4CConnection.logoff(T4CConnection.java:464)
        - locked &lt;0x9e12f270&gt; (a oracle.jdbc.driver.T4CConnection)
        at oracle.jdbc.driver.PhysicalConnection.close(PhysicalConnection.java:1175)
        - locked &lt;0x9e12f270&gt; (a oracle.jdbc.driver.T4CConnection)
        at com.sun.gjc.spi.ManagedConnection.destroy(ManagedConnection.java:279)
        at com.sun.enterprise.resource.LocalTxConnectorAllocator.destroyResource(LocalTxConnectorAllocator.java:115)
        at com.sun.enterprise.resource.AbstractResourcePool.destroyResource(AbstractResourcePool.java:924)
        at com.sun.enterprise.resource.AbstractResourcePool.removeInvalidAndIdleResources(AbstractResourcePool.java:1430)
        at com.sun.enterprise.resource.AbstractResourcePool.resizePool(AbstractResourcePool.java:1370)
        - locked &lt;0x9d12cc60&gt; (a com.sun.enterprise.resource.SJSASResourcePool)
        at com.sun.enterprise.resource.AbstractResourcePool$Resizer.run(AbstractResourcePool.java:1532)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
[Message sent by forum member 'manmc' (manmc)]

http://forums.java.net/jive/thread.jspa?messageID=274714