IDEMPIERE-1044 Load testing. Make it easier to monitor connection pool status.

This commit is contained in:
Heng Sin Low 2013-06-18 18:10:25 +08:00
parent 187eef6af2
commit 7cb4727302
1 changed files with 2 additions and 0 deletions

View File

@ -302,6 +302,8 @@ public class DB_PostgreSQL implements AdempiereDatabase
sb.append(" , # Busy Connections: ").append(m_ds.getNumBusyConnections());
sb.append(" , # Idle Connections: ").append(m_ds.getNumIdleConnections());
sb.append(" , # Orphaned Connections: ").append(m_ds.getNumUnclosedOrphanedConnections());
sb.append(" , # Min Pool Size: ").append(m_ds.getMinPoolSize());
sb.append(" , # Max Pool Size: ").append(m_ds.getMaxPoolSize());
sb.append(" , # Active Transactions: ").append(Trx.getActiveTransactions().length);
}
catch (Exception e)