Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A0BED18A44 for ; Fri, 14 Aug 2015 15:59:22 +0000 (UTC) Received: (qmail 72657 invoked by uid 500); 14 Aug 2015 15:59:20 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 72575 invoked by uid 500); 14 Aug 2015 15:59:20 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 72564 invoked by uid 99); 14 Aug 2015 15:59:20 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2015 15:59:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CA61EC1306 for ; Fri, 14 Aug 2015 15:59:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.781 X-Spam-Level: * X-Spam-Status: No, score=1.781 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id KWErgSkiT9pE for ; Fri, 14 Aug 2015 15:59:12 +0000 (UTC) Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 38826428DF for ; Fri, 14 Aug 2015 15:59:12 +0000 (UTC) Received: from spooler4-g27.priv.proxad.net (unknown [172.20.243.238]) by smtp2-g21.free.fr (Postfix) with ESMTP id 630694B00B3 for ; Fri, 14 Aug 2015 17:59:11 +0200 (CEST) Date: Fri, 14 Aug 2015 17:59:11 +0200 (CEST) From: herve.boutemy@free.fr To: Maven Users List Message-ID: <1492663088.65182512.1439567951376.JavaMail.root@spooler4-g27.priv.proxad.net> In-Reply-To: <69b7066e-0784-4e83-a3a9-766e02b2ae6b@default> Subject: Re: Ant task "artifact.dependencies" creates large number of threads MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [89.140.198.54] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - GC43 (Linux)/7.2.0-GA2598) X-Authenticated-User: herve.boutemy@free.fr Hi, I don't see where Maven Ant Tasks creates such threads Did you find more explicit traces on /where/ the threads are created? BTW, please precise your config (versions of JVM/Ant/Maven Ant Tasks). Regards, Herv=C3=A9 ----- Mail original ----- De: "Wei Feng Niu" =C3=80: users@maven.apache.org Envoy=C3=A9: Vendredi 14 Ao=C3=BBt 2015 17:16:02 Objet: Ant task "artifact.dependencies" creates large number of threads Hi,=20 We use Ant task in our Ant scripts. But found sever= al new threads were created and never existed each time was invoked. So after running some Ant scripts, we encountered the lim= itation of =E2=80=9Cmax user processes=E2=80=9D on Linux, and got exception= like the following:=20 ----------------------------------------=20 Exception in thread "pool-79-thread-4" java.lang.OutOfMemoryError: unable t= o create new native thread=20 at java.lang.Thread.start0(Native Method)=20 at java.lang.Thread.start(Thread.java:714)=20 at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.jav= a:950)=20 at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExec= utor.java:1018)=20 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav= a:1160)=20 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja= va:617)=20 at java.lang.Thread.run(Thread.java:745)=20 --------------------------------------=20 Below and attached is the screenshot (not sure whether this maillist suppor= t image or attachment) of jconsole connecting to Ant process after running = our Ant scripts for a while. There are over 100 threads and the thread coun= t keeps increasing. There isn=E2=80=99t such issue without using Ant task.=20 Is there any way to make the threads be released?=20 threads.jpg Best regards,=20 -Weifeng=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org