增强监控

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@334 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-06-30 14:50:55 +00:00
parent 89c94b795d
commit 0f8330e3d9
3 changed files with 68 additions and 12 deletions
@@ -155,7 +155,7 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean {
@Override
public long getConnectionConnectAliveMillis() {
long nowNano = System.nanoTime();
long aliveNanoSpan = this.getConnectionStat().getNanoTotal();
long aliveNanoSpan = this.getConnectionStat().getAliveTotal();
for (JdbcConnectionStat.Entry connection : connections.values()) {
aliveNanoSpan += nowNano - connection.getEstablishNano();