From 593a37a4643cb419b522f170d879dc63d6fa3bbe Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 21 Mar 2008 01:07:09 +0000 Subject: [PATCH] FR [1921784] --- .../org/compiere/web/AdempiereMonitor.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/serverRoot/src/main/servlet/org/compiere/web/AdempiereMonitor.java b/serverRoot/src/main/servlet/org/compiere/web/AdempiereMonitor.java index ead6348bf5..d9c29efdb4 100644 --- a/serverRoot/src/main/servlet/org/compiere/web/AdempiereMonitor.java +++ b/serverRoot/src/main/servlet/org/compiere/web/AdempiereMonitor.java @@ -700,6 +700,21 @@ public class AdempiereMonitor extends HttpServlet + ", Demons=" + th.getDaemonThreadCount() + ", Total=" + th.getTotalStartedThreadCount())); table.addElement(line); + + //Transactions + Trx[] trxs = Trx.getActiveTransactions(); + for (Trx trx : trxs) + { + if (trx != null && trx.isActive()) + { + line = new tr(); + line.addElement(new th().addElement("Active Transaction ")); + line.addElement(new td().addElement("Name="+trx.getTrxName() + + ", StartTime=" + trx.getStartTime())); + table.addElement(line); + } + } + // Cache Reset line = new tr(); line.addElement(new th().addElement(CacheMgt.get().toStringX()));