You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:25:32 UTC
[sling-org-apache-sling-commons-threads] 02/08: Add some more debug
information.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.commons.threads-3.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-threads.git
commit b56bac237a233c80fad29e9fbc3c714a4760472c
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Dec 18 09:20:15 2009 +0000
Add some more debug information.
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/threads@892191 13f79535-47bb-0310-9956-ffa450edef68
---
.../java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java b/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java
index bc954bf..2a97469 100644
--- a/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java
+++ b/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java
@@ -158,9 +158,10 @@ public class DefaultThreadPool
}
if ( runnable != null ) {
if ( this.logger.isDebugEnabled() ) {
- this.logger.debug("Executing runnable: {}, pool={}, corePoolSize={}, maxPoolSize={}, queueSize={}",
+ this.logger.debug("Executing runnable: {}, pool={}, active={}, corePoolSize={}, maxPoolSize={}, queueSize={}",
new Object[] {runnable,
this.name,
+ this.executor.getActiveCount(),
this.executor.getCorePoolSize(),
this.executor.getMaximumPoolSize(),
this.executor.getQueue().size()});
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.