Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3BE83D68D for ; Sat, 28 Jul 2012 17:19:12 +0000 (UTC) Received: (qmail 2882 invoked by uid 500); 28 Jul 2012 17:19:12 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 2840 invoked by uid 500); 28 Jul 2012 17:19:11 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 2827 invoked by uid 99); 28 Jul 2012 17:19:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jul 2012 17:19:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Sat, 28 Jul 2012 17:19:10 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2037223888FE for ; Sat, 28 Jul 2012 17:18:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1366711 - /activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala Date: Sat, 28 Jul 2012 17:18:27 -0000 To: commits@activemq.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120728171827.2037223888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: chirino Date: Sat Jul 28 17:18:26 2012 New Revision: 1366711 URL: http://svn.apache.org/viewvc?rev=1366711&view=rev Log: Log how many threads are being used to run tests in parallel. Modified: activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala Modified: activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala?rev=1366711&r1=1366710&r2=1366711&view=diff ============================================================================== --- activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala (original) +++ activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala Sat Jul 28 17:18:26 2012 @@ -128,7 +128,9 @@ object ParallelJUnitRunner { val value = this.synchronized { useCounter+=1 if( executor == null) { - executor = Executors.newFixedThreadPool(Integer.getInteger("test.threads", Runtime.getRuntime.availableProcessors)); + var threads = Integer.getInteger("test.threads", Runtime.getRuntime.availableProcessors*2) + println("ParallelJUnitRunner using up to "+threads+" threads to execute parallel tests.") + executor = Executors.newFixedThreadPool(threads); } executor }