maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Ant task "artifact.dependencies" creates large number of threads
Date Fri, 14 Aug 2015 15:59:11 GMT

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).



----- Mail original -----
De: "Wei Feng Niu" <>
Envoyé: Vendredi 14 Août 2015 17:16:02
Objet: Ant task "artifact.dependencies" creates large number of threads


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

at java.lang.Thread.start0(Native Method) 

at java.lang.Thread.start( 

at java.util.concurrent.ThreadPoolExecutor.addWorker( 

at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(

at java.util.concurrent.ThreadPoolExecutor.runWorker( 

at java.util.concurrent.ThreadPoolExecutor$ 



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? 


Best regards, 


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message