You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9f84eb2
Browse filesBrowse the repository at this point in the historyBrowse files
s_logger.trace("Return a VmwareContext from the pool.");
66
+
s_logger.trace("Return a VmwareContext from the idle pool: " + poolKey + ". current pool size: " + l.size() + ", outstanding count: " + VmwareContext.getOutstandingContextCount());
67
67
68
68
VmwareContextcontext = l.remove(0);
69
69
context.setPoolInfo(this, poolKey);
70
70
returncontext;
71
71
}
72
72
73
-
if(s_logger.isInfoEnabled())
74
-
s_logger.info("No VmwareContext is available from the idle pool, create a new one");
73
+
if(s_logger.isTraceEnabled())
74
+
s_logger.trace("No VmwareContext is available from the idle pool: " + poolKey + ", create a new one and current outstanding count is: " + VmwareContext.getOutstandingContextCount());
75
+
76
+
// TODO, we need to control the maximum number of outstanding VmwareContext object in the future
75
77
returnnull;
76
78
}
77
79
}
@@ -89,21 +91,27 @@ public void returnContext(VmwareContext context) {
89
91
if(l.size() < _maxIdleQueueLength) {
90
92
context.clearStockObjects();
91
93
l.add(context);
94
+
95
+
if(s_logger.isTraceEnabled())
96
+
s_logger.trace("Recycle VmwareContext into idle pool: " + context.getPoolKey() + ", current idle pool size: "
0 commit comments