AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@169c9a2)
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 300
AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@ad9f5d)
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 300
AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@1bfd53d)
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 300
AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@1ccf342)
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 300

解决方案 »

  1.   

    引用别人的答案呵呵:
    解决的办法有3个  1重启你的服务器  2在content.xml中,将maxActive设置为零,或者调高它的值  3在你的程序中正确关闭connections 这里有一点要注意要把关闭的语句写在finally中,如果你写在try{}中出现异常的话是无法正确关闭的。  要象这样  } catch (SQLException e) {  
    /** Exception handling **/  
    } finally {  
    try {  
    if (stmt != null)  
    stmt.close();  
    if (dbConnection != null)  
    dbConnection.close();  
    } catch (SQLException e) {  
    /** Exception handling **/  
    }  
    }  
    当然这3个方法里前两个并不能从根本上解决你的问题,所以还是要好好研究你的程序,一定要将用完的connection放回到池中。