IDEMPIERE-1044 Load testing. Make it easier to monitor connection pool status.
This commit is contained in:
parent
6e6d59d04f
commit
187eef6af2
|
@ -635,13 +635,19 @@ public class CLogMgt
|
||||||
ctx = Env.getCtx();
|
ctx = Env.getCtx();
|
||||||
// Envoronment
|
// Envoronment
|
||||||
CConnection cc = CConnection.get();
|
CConnection cc = CConnection.get();
|
||||||
sb.append(NL)
|
sb.append(NL).append(NL)
|
||||||
.append("=== Environment === ")
|
.append("=== Environment === ").append(NL)
|
||||||
.append(Adempiere.getCheckSum()).append(NL)
|
.append(Adempiere.getCheckSum()).append(NL)
|
||||||
.append(Adempiere.getSummaryAscii()).append(NL)
|
.append(Adempiere.getSummaryAscii()).append(NL)
|
||||||
.append(getLocalHost()).append(NL)
|
.append(getLocalHost()).append(NL)
|
||||||
.append(cc.getName() + " " + cc.getDbUid() + "@" + cc.getConnectionURL()).append(NL)
|
.append(cc.getName() + " " + cc.getDbUid() + "@" + cc.getConnectionURL()).append(NL)
|
||||||
.append(cc.getInfo()).append(NL);
|
.append(cc.getInfo()).append(NL);
|
||||||
|
|
||||||
|
//connection pool
|
||||||
|
sb.append(NL)
|
||||||
|
.append("=== DB Connection Pool === ").append(NL)
|
||||||
|
.append(cc.getDatabase().getStatus().replace(" , ", NL)).append(NL);
|
||||||
|
|
||||||
// Context
|
// Context
|
||||||
sb.append(NL)
|
sb.append(NL)
|
||||||
.append("=== Context ===").append(NL);
|
.append("=== Context ===").append(NL);
|
||||||
|
@ -660,6 +666,7 @@ public class CLogMgt
|
||||||
String value = System.getProperty(key);
|
String value = System.getProperty(key);
|
||||||
sb.append(key).append("=").append(value).append(NL);
|
sb.append(key).append("=").append(value).append(NL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return sb;
|
return sb;
|
||||||
} // getInfoDetail
|
} // getInfoDetail
|
||||||
|
|
||||||
|
|
|
@ -879,7 +879,10 @@ public class AdempiereMonitor extends HttpServlet
|
||||||
info = db.getDescription();
|
info = db.getDescription();
|
||||||
line.addElement(new th().addElement(info));
|
line.addElement(new th().addElement(info));
|
||||||
line.addElement(new td().addElement(cc.getConnectionURL()));
|
line.addElement(new td().addElement(cc.getConnectionURL()));
|
||||||
// line.addElement(new td().addElement(system.getDBInstance()));
|
table.addElement(line);
|
||||||
|
line = new tr();
|
||||||
|
line.addElement(new th().addElement("DB Connection Pool"));
|
||||||
|
line.addElement(new td().addElement(cc.getDatabase().getStatus()));
|
||||||
table.addElement(line);
|
table.addElement(line);
|
||||||
// Processors/Support
|
// Processors/Support
|
||||||
line = new tr();
|
line = new tr();
|
||||||
|
|
Loading…
Reference in New Issue