IDEMPIERE-1044 Load testing. Make it easier to monitor connection pool status.
This commit is contained in:
parent
187eef6af2
commit
7cb4727302
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue