mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
more GetConnectionTimeout message info. add field 'creatingCount'
This commit is contained in:
@@ -1250,8 +1250,9 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
StringBuilder buf = new StringBuilder();
|
||||
buf.append("wait millis ")//
|
||||
.append(waitNanos / (1000 * 1000))//
|
||||
.append(", active " + activeCount)//
|
||||
.append(", maxActive " + maxActive)//
|
||||
.append(", active ").append(activeCount)//
|
||||
.append(", maxActive ").append(maxActive)//
|
||||
.append(", creating ").append(creatingCount.get())//
|
||||
;
|
||||
|
||||
List<JdbcSqlStatValue> sqlList = this.getDataSourceStat().getRuningSqlList();
|
||||
@@ -1262,8 +1263,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
buf.append(", ");
|
||||
}
|
||||
JdbcSqlStatValue sql = sqlList.get(i);
|
||||
buf.append("runningSqlCount ");
|
||||
buf.append(sql.getRunningCount());
|
||||
buf.append("runningSqlCount ").append(sql.getRunningCount());
|
||||
buf.append(" : ");
|
||||
buf.append(sql.getSql());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user