This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.commons.threads-2.0.4-incubator in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-threads.git
commit 194ca0d4c890d9be088d71cd7ab0f57d1f1ebfb3 Author: Carsten Ziegeler <[email protected]> AuthorDate: Tue Dec 9 17:23:28 2008 +0000 Add more logging to easier detect pool problems. git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/commons/threads@724788 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/sling/commons/threads/impl/DefaultThreadPool.java | 9 ++++++++- 1 file changed, 8 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 80f4617..b75608f 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 @@ -159,7 +159,14 @@ public class DefaultThreadPool throw new IllegalStateException("Thread pool " + this.name + " is already shutdown."); } if ( runnable != null ) { - this.logger.debug("Executing runnable: {},pool={}", runnable, this.name); + if ( this.logger.isDebugEnabled() ) { + this.logger.debug("Executing runnable: {}, pool={}, corePoolSize={}, maxPoolSize={}, queueSize={}", + new Object[] {runnable, + this.name, + this.executor.getCorePoolSize(), + this.executor.getMaximumPoolSize(), + this.executor.getQueue().size()}); + } this.executor.execute(runnable); } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
