dev@glassfish.java.net

Re: New message "A potential connection leak detected for connection pool"

From: Jagadish Prasath Ramu <Jagadish.Ramu_at_Sun.COM>
Date: Fri, 29 Oct 2010 20:17:14 +0530

This message indicates that the connection is leaked by the application.
connection-leak-tracing is turned on for the pool "qcpool".

Can you post the complete stack trace along with connection pool
configuration ?

Thanks,
-Jagadish


On Fri, 2010-10-29 at 15:31 +0100, Nigel Deakin wrote:
> I've started seeing these messages with Glassfish 3.1 Milestone 6, in regression tests which seem to work fine.
>
> Exactly what do the messages mean, and what circumstances cause them to be logged? Are they new?
>
> WARNING: A potential connection leak detected for connection pool qcpool. The stack trace of the thread is
> provided below :
> com.sun.enterprise.resource.pool.ConnectionPool.setResourceStateToBusy(ConnectionPool.java:324)
> com.sun.enterprise.resource.pool.ConnectionPool.getResourceFromPool(ConnectionPool.java:752)
> com.sun.enterprise.resource.pool.ConnectionPool.getUnenlistedResource(ConnectionPool.java:630)
> com.sun.enterprise.resource.pool.ConnectionPool.internalGetResource(ConnectionPool.java:523)
> com.sun.enterprise.resource.pool.ConnectionPool.getResource(ConnectionPool.java:381)
> com.sun.enterprise.resource.pool.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:242)
> com.sun.enterprise.resource.pool.PoolManagerImpl.getResource(PoolManagerImpl.java:167)
> com.sun.enterprise.connectors.ConnectionManagerImpl.getResource(ConnectionManagerImpl.java:332)
> com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:295)
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:227)
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:156)
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:151)
> com.sun.genericra.outbound.ConnectionFactory.createConnection(ConnectionFactory.java:75)
> com.sun.genericra.outbound.ConnectionFactory.createQueueConnection(ConnectionFactory.java:115)
>
> Nigel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>