From 7cb47273027c1d3d8ca1ec66a594f0420a7e5792 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 18 Jun 2013 18:10:25 +0800 Subject: [PATCH] IDEMPIERE-1044 Load testing. Make it easier to monitor connection pool status. --- .../src/org/compiere/db/DB_PostgreSQL.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.compiere.db.postgresql.provider/src/org/compiere/db/DB_PostgreSQL.java b/org.compiere.db.postgresql.provider/src/org/compiere/db/DB_PostgreSQL.java index b2b64c7aee..8711e235f0 100755 --- a/org.compiere.db.postgresql.provider/src/org/compiere/db/DB_PostgreSQL.java +++ b/org.compiere.db.postgresql.provider/src/org/compiere/db/DB_PostgreSQL.java @@ -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)