hibernate - Connection Pool Exception: Cannot get a connection, pool error Timeout waiting for idle object -
I'm running a web application in production which recently crashed due to some tension. I think 100-300 people have the same time, which I would expect to work well but went to the site
There are logs around the time of the accident.
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Tags & lt Implementation Error; Six: render & gt;: Hibernate operation: JDBC can not inspect autocommit mode; Sql [???]; SQL state [null]; Error code [0]; A connection is waiting for the timeout object object that can not get the pool error; The nested exception is not org.apache.commons.db \ cp.SQLNestedException: Can not get a connection, at the pool error timeout for / usb-inf/grails-app/views/layouts/file.gsp37 for the useless object Gsp_file_gsp $ _run_closure2 .doCall (file_gsp.groovy: 43) at gsp_file_gsp $ _run_closure2.doCall (file_gsp.groovy) gsp_file_gsp.run (gsp_file_gsp.groovy: 48) org.apache.jk.server.JkCoyoteHandler.invoke (JkCoyoteHandler. Java: 190) at org.apache.jk.common.HandlerRequest.invoke (HandlerRequest.javaociety91) at org.apache.jk.common.ChannelSocket.invoke (ChannelSocket.java:774) org.apache.jk.common. Org.springframework at ChannelSocket.processConnection: org.apache.jk.common.ChannelSocket $ SocketConnection.runIt (ChannelSocket.java:896) on java.lang.Thread.run (Thread.java:662) key On the same (ChannelSocket.java:703). Jdbc.UncategorizedSQLException: Hibernate Operation: JDBC could not observe autocommit mode; SQL classified for SQL [???]; SQL State \ e [null]; Error code [0]; A connection is waiting for the timeout object object that can not get the pool error; The nested exception is org.apache.commons.dbcp.SQLNestedException: The user can not get a co \ nnection at gsp_pps_file_gsp: $ at find.call (unknown source), pool error timeout User.find for useless object (68 User.groovy ) Waiting on the .run (gsp_file_gsp.groovy: 22) org.apache.commons.dbcp.PoolingDataSource waiting for the useless object, can not get a connection to the pool error timeout: org.apache.commons.dbcp. Because of SQLNestedException ... 9 more Java.util.NoSuchElementException: getConnection (PoolingDataSource.java:114) at $ Proxy7.getAutoCommit (unknown source) on org.apache.commons.dbcp.BasicDataSource.getConnection (BasicDataSource.java:1044) ... 12 due to more : Expired org.apache.commons.dbcp.PoolingDataSource.getConnection (PoolingDataSource.java:106) on org.apache.commons.pool.impl.GenericObjectPool.borrowObject (GenericObjectPool.java:1144) waiting for useless object. .. 14 more I believe this is directly related to some codes which have recently been added to my grills project which affect the connection pool (though It is not a grails specific problem):
maxActive = 50 maxIdle = 15 minIdle = 5 initialSize = 15 minEvictableIdleTimeMillis = 180000 timeBetweenEvictionRunsMillis = 180000 maxWait = 10000 validationQuery = "/ * Ping * / " What am I doing wrong? Please help! Thanks
Replace relevant parts for:.
minEvictableIdleTimeMillis = 1800000 timeBetweenEvictionRunsMillis = 1800000 numTestsPerEvictionRun = 3 testOnBorrow = true testWhileIdle = true testOnReturn = true validationQuery = "select1" The problem should be resolved.
Comments
Post a Comment