diff --git a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java index c499576f5f5..f4fcfa8bc0e 100755 --- a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java +++ b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java @@ -100,7 +100,7 @@ public class VmwareContext { registerOutstandingContext(); if(s_logger.isInfoEnabled()) - s_logger.info("New VmwareContext object, current outstanding count: " + getOutstandingContextCount()); + s_logger.info("New VmwareContext object: " + System.identityHashCode(this) + ", current outstanding count: " + getOutstandingContextCount()); } public boolean validate() { diff --git a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java index c36b3a8ce24..8db95991510 100644 --- a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java +++ b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java @@ -83,8 +83,9 @@ public class VmwareContextPool { VmwareContext context = l.remove(0); context.setPoolInfo(this, poolKey); - if(s_logger.isTraceEnabled()) - s_logger.trace("Return a VmwareContext from the idle pool: " + poolKey + ". current pool size: " + l.size() + ", outstanding count: " + VmwareContext.getOutstandingContextCount()); + if(s_logger.isInfoEnabled()) + s_logger.info("Return a VmwareContext from the idle pool: " + poolKey + ". current pool size: " + l.size() + ", " + + "outstanding count: " + VmwareContext.getOutstandingContextCount() + ". context: " + System.identityHashCode(context)); return context; } @@ -107,11 +108,11 @@ public class VmwareContextPool { context.clearStockObjects(); l.add(context); - if(s_logger.isTraceEnabled()) - s_logger.trace("Recycle VmwareContext into idle pool: " + context.getPoolKey() + ", current idle pool size: " - + l.size() + ", outstanding count: " + VmwareContext.getOutstandingContextCount()); + if(s_logger.isInfoEnabled()) + s_logger.info("Recycle VmwareContext into idle pool: " + context.getPoolKey() + ", current idle pool size: " + + l.size() + ", outstanding count: " + VmwareContext.getOutstandingContextCount() + ". context: " + System.identityHashCode(context)); } else { - if(s_logger.isTraceEnabled()) + if(s_logger.isDebugEnabled()) s_logger.trace("VmwareContextPool queue exceeds limits, queue size: " + l.size()); context.close(); }