cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From likit...@apache.org
Subject git commit: updated refs/heads/4.3 to c055417
Date Thu, 05 Dec 2013 14:16:28 GMT
Updated Branches:
  refs/heads/4.3 0c64eda53 -> c05541758


CLOUDSTACK-5336. During regression automation management server hang with "out of memory error".
Adding logs to help debug OOM error.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c0554175
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c0554175
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c0554175

Branch: refs/heads/4.3
Commit: c055417589aba55b488bcfb003af7959ff2a63f5
Parents: 0c64eda
Author: Likitha Shetty <likitha.shetty@citrix.com>
Authored: Thu Dec 5 19:32:01 2013 +0530
Committer: Likitha Shetty <likitha.shetty@citrix.com>
Committed: Thu Dec 5 19:34:42 2013 +0530

----------------------------------------------------------------------
 .../cloud/hypervisor/vmware/util/VmwareContext.java    |  2 +-
 .../hypervisor/vmware/util/VmwareContextPool.java      | 13 +++++++------
 2 files changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c0554175/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java
----------------------------------------------------------------------
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 c499576..f4fcfa8 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() {

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c0554175/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java
----------------------------------------------------------------------
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 c36b3a8..8db9599 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();
 			}


Mime
View raw message