Return-Path: Delivered-To: apmail-incubator-sling-commits-archive@locus.apache.org Received: (qmail 20281 invoked from network); 9 Dec 2008 17:23:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2008 17:23:49 -0000 Received: (qmail 77043 invoked by uid 500); 9 Dec 2008 17:24:02 -0000 Delivered-To: apmail-incubator-sling-commits-archive@incubator.apache.org Received: (qmail 77010 invoked by uid 500); 9 Dec 2008 17:24:02 -0000 Mailing-List: contact sling-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sling-dev@incubator.apache.org Delivered-To: mailing list sling-commits@incubator.apache.org Received: (qmail 76998 invoked by uid 99); 9 Dec 2008 17:24:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 09:24:02 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 17:22:39 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CB0BB23889B7; Tue, 9 Dec 2008 09:23:28 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r724788 - /incubator/sling/trunk/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java Date: Tue, 09 Dec 2008 17:23:28 -0000 To: sling-commits@incubator.apache.org From: cziegeler@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081209172328.CB0BB23889B7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cziegeler Date: Tue Dec 9 09:23:28 2008 New Revision: 724788 URL: http://svn.apache.org/viewvc?rev=724788&view=rev Log: Add more logging to easier detect pool problems. Modified: incubator/sling/trunk/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java Modified: incubator/sling/trunk/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java URL: http://svn.apache.org/viewvc/incubator/sling/trunk/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java?rev=724788&r1=724787&r2=724788&view=diff ============================================================================== --- incubator/sling/trunk/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java (original) +++ incubator/sling/trunk/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java Tue Dec 9 09:23:28 2008 @@ -159,7 +159,14 @@ 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); }