commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (POOL-329) Thread is waiting on <5d5e9e57> (a org.apache.commons.pool.impl.GenericObjectPool)
Date Thu, 31 Aug 2017 20:05:00 GMT

    [ https://issues.apache.org/jira/browse/POOL-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16149514#comment-16149514
] 

Phil Steitz commented on POOL-329:
----------------------------------

There is no evidence of a pool or dbcp bug here.  From the stack trace it looks like the connection
pool is exhausted.  You did not specify a maxwait setting, so when a thread tries to borrow
a connection when there are none available, it will wait indefinitely until one becomes available.
 Its state will appear as in the trace above.  Changing dbcp / pool implementations will have
no effect if this is what is going on.  Most likely, the application is failing to close connections
on all execution paths.

> Thread is waiting on <5d5e9e57> (a org.apache.commons.pool.impl.GenericObjectPool)
> ----------------------------------------------------------------------------------
>
>                 Key: POOL-329
>                 URL: https://issues.apache.org/jira/browse/POOL-329
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 1.6
>            Reporter: Devendra
>
> Pool Configuration
> {color:#14892c}<property name="testOnBorrow" value="true" />
> 		<property name="initialSize" value="250"/>
>   		<property name="maxActive" value="200"/>
> 		<property name="maxIdle" value="50"/>
> 		<property name="minIdle" value="0"/>
> 		<property name="validationQuery" value="SELECT 1 FROM DUAL"/>{color}
> Tread stuck - 
> {color:#d04437}"Thread-1682" - Thread t@1720
>    java.lang.Thread.State: WAITING
>         at java.lang.Object.wait(Native Method)
>         - waiting on <5d5e9e57> (a org.apache.commons.pool.impl.GenericObjectPool)
>         at java.lang.Object.wait(Object.java:502)
>         at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:942)
>         at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
>         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
>         at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:139)
>         at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:380)
>         at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:228)
>         at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:171)
>         at org.hibernate.internal.SessionImpl.connection(SessionImpl.java:450)
>         at org.springframework.orm.hibernate4.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:429)
>         at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
>         at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:420)
>         at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:257)
>         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
>         at com.sun.proxy.$Proxy76.getCustomerCampainIdByCardno(Unknown Source)
>         at com.concerto.pcs.campaign.service.CampaignSelectionServiceImpl.getCutomerCampaignBean(CampaignSelectionServiceImpl.java:44)
>         at com.concerto.pcs.transaction.commands.CampaignSelection.execute(CampaignSelection.java:49)
>         at com.concerto.pcs.transaction.cmdinterface.TransactionCommnad.execute(TransactionCommnad.java:130)
>         at com.concerto.pcs.transaction.manager.TransactionProcessor.processTransactionRequest(TransactionProcessor.java:91)
>         at com.concerto.pcs.message.handler.ISOMessageHandler.run(ISOMessageHandler.java:292)
>    Locked ownable synchronizers:
>         - None{color}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message