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