Hervé, Thanks for your quick response. Just found an issue https://issues.apache.org/jira/browse/MANTTASKS-213 seems similar to the issue I encountered. Will check if the solution in the issue works for us
Best regards, -Weifeng -----Original Message----- From: herve.bout...@free.fr [mailto:herve.bout...@free.fr] Sent: 2015年8月14日 23:59 To: Maven Users List Subject: Re: Ant task "artifact.dependencies" creates large number of threads 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é ----- Mail original ----- De: "Wei Feng Niu" <wei.feng....@oracle.com> À: users@maven.apache.org Envoyé: Vendredi 14 Août 2015 17:16:02 Objet: Ant task "artifact.dependencies" creates large number of threads Hi, We use <artifact.dependencies> Ant task in our Ant scripts. But found several new threads were created and never existed each time <artifact.dependencies> was invoked. So after running some Ant scripts, we encountered the limitation of “max user processes” on Linux, and got exception like the following: ---------------------------------------- Exception in thread "pool-79-thread-4" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:714) at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950) at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1018) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) -------------------------------------- Below and attached is the screenshot (not sure whether this maillist support 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 count keeps increasing. There isn’t such issue without using <artifact.dependencies> Ant task. Is there any way to make the threads be released? threads.jpg Best regards, -Weifeng --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org