使用JDK自带工具jstack查看进程的堆栈信息,发现大量TIMED_WAITING线程,堆栈信息如下:
java.lang.Thread.state: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
parking to wait for <0x0009000081d048c8> (a java,util.concurrent, locks.AbstractQueuedsynchronizer$conditionobject)
t iovo util concurrent locle lockSunnort
socell oclsuos
at java,util,concurrent, locks,AbstractOueuedsynchronizer$Condition0biect,await (AbstractQueuedsynchronizer,java:2039)
at com.alibaba.druid.pool.DruidDataSource.takeLast(DruidDataSource.java:2190)
at com.alibaba,druid,pool.DruidDataSource.getconnectionInternal(DruidDataSource.java:1682)
at com.alibaba,druid,pool,DruidDataSource.getconnectionDirect(DruidDataSource.java:1419)
at com.alibaba,druid.pool,DruidDataSource,getConnection(DruidDataSource.java:1399)
at com,alibaba,druid,pool,DruidDataSource.getconnection(DruidDataSource.java:1389)
at com,alibaba.druid.pool,DruidDataSource,getconnection(DruidDataSource.java:100)
at org,apache.shardingsphere,driver. jdbc, core, connection.connectionManager,createconnection(connectionManager. java: 358)
at org,apache ,shardingsphere,driver, jdbc,core, connection, connectionManager,createconnections(connectionManager. java:327)
at org.apache,shardingsphere.driver. jdbc,core.connection,ConnectionManager.getConnections(ConnectionManager. java: 316)
at org,apache ,shardingsphere,infra.executor,sql.prepare.driver,DriverExecutionPrepareEngine.group(DriverexecutionPrepareEngine.java:88)
at org.apache shardingsphere,infra,executor,sql.prepare,AbstractexecutionPrepareEngine,prepare(AbstractExecutionPrepareengine.java: 62)
at org .apache ,shardingsphere.driver, jdbc.core.statement,shardingspherePreparedstatement.createExecutionGroupcontext(shardingspherePrepare
at org,apache.shardingsphere,driver, jdbc,core.statement .ShardingspherePreparedstatement,execute(shardingspherePreparedtatement,java:400)
at sun,reflect.GeneratedMethodAccessorl55,invoke(Unknown source)
at sun. reflect.DelegatingMethodAccessorImpl,invoke(DelegatingMethodAccessorImpl.java: 43)
at iava.lang.reflect.Method.invoke(Method.java:498)
at org.apache. ibatis.logging.jdbc,PreparedstatementLogger,invoke(PreparedstatementLogger.java:59)
at com.sun.proxy.$Proxy244.execute(Unknown Source)
at org.apache.ibatis.executor,statement.PreparedstatementHandler,query(PreparedStatementHandler. java: 64)