1. Open the project's page as follows:
Connection has been abandoned pooledconnection and Too Many connections can be found from the Tomcat log .
2017-08-03 18:28:48.022 WARN 6396---[o-8080-exec-170] o.a.tomcat.jdbc.pool.connectionpool:Connection has been abandoned pooledconnection[[Email protected]]:java.lang.exceptionat Org.apache.tomcat.jdbc.pool.ConnectionPool.getThreadDump ( connectionpool.java:1065) at Org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection (connectionpool.java:707 ) at Org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection (connectionpool.java:634) at Org.apache.tomcat.jdbc.pool.ConnectionPool.init (connectionpool.java:488) at Org.apache.tomcat.jdbc.pool.connectionpool.<init> (connectionpool.java:144) at Org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool (datasourceproxy.java:116) at Org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool (datasourceproxy.java:103) at Org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection (datasourceproxy.java:127) ... at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:239) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206) at Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:212) at Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:106) at Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:141) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:79) at Org.apache.catalina.valves.AbstractAccessLogValve.invoke (abstractaccesslogvalve.java:616) at Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:88) at Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:521) at Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1096) at Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:674) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun (nioendpoint.java:1500) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.run (nioendpoint.java:1456) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:617) at Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (TaskThread.java:61) at Java.lang.Thread.run (thread.java:745) 2017-08-03 18:28:48 ERROR [com.xxx.yyy.a.b]--<too many connections> Com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:too many connections At Sun.reflect.GeneratedConstructorAccessor295.newInstance (Unknown Source) at Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (delegatingconstructoraccessorimpl.java:45) at Java.lang.reflect.Constructor.newInstance (constructor.java:422) at Com.mysql.jdbc.Util.handleNewInstance ( util.java:409) at Com.mysql.jdbc.Util.getInstance (util.java:384) at Com.mysql.jdbc.SQLError.createSQLException ( sqlerror.java:1015) at Com.mysql.jdbc.MysqlIO.checkErrorPacket (mysqlio.java:3562) at Com.mysql.jdbc.MysqlIO.checkErrorPacket (mysqlio.java:3494) at Com.mysql.jdbc.MysqlIO.checkErrorPacket ( mysqlio.java:920) at com.mysql.jdbc.MysqlIO.secureAuth411 (mysqlio.java:4000) at Com.mysql.jdbc.MysqlIO.doHandshake (mysqlio.java:1285) at Com.mysql.jdbc.ConnectionImpl.createNewIO (connectionimpl.java:2186) at Com.mysql.jdbc.connectionimpl.<init> (connectionimpl.java:787) at Com.mysql.jdbc.jdbc4connection.<init > (jdbc4connection.java:49) at Sun.reflect.GeneratedConstructorAccessor288.newInstance (Unknown Source) at Sun.Reflect. Delegatingconstructoraccessorimpl.newinstance (delegatingconstructoraccessorimpl.java:45) at Java.lang.reflect.Constructor.newInstance (constructor.java:422) at Com.mysql.jdbc.Util.handleNewInstance ( util.java:409) at Com.mysql.jdbc.ConnectionImpl.getInstance (connectionimpl.java:357) at Com.mysql.jdbc.NonRegisteringDriver.connect (nonregisteringdriver.java:285) at Org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver (pooledconnection.java:278) at Org.apache.tomcat.jdbc.pool.PooledConnection.connect (pooledconnection.java:182) at Org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection (connectionpool.java:702) at Org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection (connectionpool.java:634) at Org.apache.tomcat.jdbc.pool.ConnectionPool.init (connectionpool.java:488) at Org.apache.tomcat.jdbc.pool.connectionpool.<init> (connectionpool.java:144) at Org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool (datasourceproxy.java:116) at Org.apache.tomcat.jdbc.pool.DataSourceProxy. CreatePool (datasourceproxy.java:103) at Org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection ( datasourceproxy.java:127) ... at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( applicationfilterchain.java:239) at Org.apache.catalina.core.ApplicationFilterChain.doFilter ( applicationfilterchain.java:206) at Org.apache.catalina.core.StandardWrapperValve.invoke ( standardwrappervalve.java:212) at Org.apache.catalina.core.StandardContextValve.invoke (Standardcontextvalve.java : 106) at Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:141) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:79) at Org.apache.catalina.valves.AbstractAccessLogValve.invoke (abstractaccesslogvalve.java:616) at Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:88) at Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:521) at Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1096) AT Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:674) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun (nioendpoint.java:1500) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.run (nioendpoint.java:1456) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:617) at Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (taskthread.java:61) at Java.lang.Thread.run ( thread.java:745)
2. Solution
Restart Eclipse and run the project again (CTRL+ALT+D). The main reason for this problem is that eclipse will automatically recompile the code when the code is saved, and you can easily get this HTTP 403 error if you modify the code again to save it.
Workaround for HTTP 403 error (forbidden) during Eclipse development