Build hangs for 5 minutes after tests finish executing M9


(greg.gigon) #1

Hi Guys I’m migrating from M3 to M9.

I was trying to run a tests and noticed that when tests finish it takes forever for Gradle to finish the build. I run it number of times and it took about 5 minutes for Gradle to carry on. It looks like it’s waiting for something to timeout. We are running TestNG Suite and I checked that the last call in AfterSuite was made.

Two Thread Dumps bellow:

Please help guys, Greg

2012-03-20 14:37:36 Full thread dump Java HotSpot™ Client VM (19.1-b02 mixed mode, sharing):

“Incoming Connection [3d3ee402-cb78-4094-96fa-6cf6e0a9c161 port:2379, addresses:[/127.0.0.1]]:3 outgoing org.gradle.api.internal.tasks.testing.worker.RemoteTestClassProcessor Thread 2” prio=6 tid=0x03e2e800 nid=0x724c waiting on condition [0x09c8f000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d0c1a00> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.DelayedReceive.receive(DelayedReceive.java:50)

at org.gradle.messaging.dispatch.AsyncReceive.receiveMessages(AsyncReceive.java:149)

at org.gradle.messaging.dispatch.AsyncReceive.access$000(AsyncReceive.java:36)

at org.gradle.messaging.dispatch.AsyncReceive$1.run(AsyncReceive.java:90)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0c65e0> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Incoming Connection [3d3ee402-cb78-4094-96fa-6cf6e0a9c161 port:2379, addresses:[/127.0.0.1]]:3 outgoing org.gradle.api.internal.tasks.testing.worker.RemoteTestClassProcessor” prio=6 tid=0x03c09400 nid=0x7248 waiting on condition [0x09c3f000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d0c1b68> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:115)

at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:74)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0c67f0> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Incoming Connection [3d3ee402-cb78-4094-96fa-6cf6e0a9c161 port:2379, addresses:[/127.0.0.1]]:3 worker Thread 4” prio=6 tid=0x03f80400 nid=0x7078 waiting on condition [0x09bef000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d0c1c70> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.DelayedReceive.receive(DelayedReceive.java:50)

at org.gradle.messaging.dispatch.AsyncReceive.receiveMessages(AsyncReceive.java:149)

at org.gradle.messaging.dispatch.AsyncReceive.access$000(AsyncReceive.java:36)

at org.gradle.messaging.dispatch.AsyncReceive$1.run(AsyncReceive.java:90)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0c69d8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Incoming Connection [3d3ee402-cb78-4094-96fa-6cf6e0a9c161 port:2379, addresses:[/127.0.0.1]]:3 worker Thread 3” prio=6 tid=0x041e3800 nid=0x7074 waiting on condition [0x09b9f000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d0c1dd8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:115)

at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:74)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0c6b28> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Incoming Connection [3d3ee402-cb78-4094-96fa-6cf6e0a9c161 port:2379, addresses:[/127.0.0.1]]:3 worker Thread 2” prio=6 tid=0x0495d400 nid=0x707c waiting on condition [0x09b4f000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d0c1ee0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.DelayedReceive.receive(DelayedReceive.java:50)

at org.gradle.messaging.dispatch.AsyncReceive.receiveMessages(AsyncReceive.java:149)

at org.gradle.messaging.dispatch.AsyncReceive.access$000(AsyncReceive.java:36)

at org.gradle.messaging.dispatch.AsyncReceive$1.run(AsyncReceive.java:90)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0c6d10> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Incoming Connection [3d3ee402-cb78-4094-96fa-6cf6e0a9c161 port:2379, addresses:[/127.0.0.1]]:3 worker” prio=6 tid=0x03d92400 nid=0x7080 waiting on condition [0x09aff000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d0c2048> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:115)

at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:74)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0c6e50> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“socket connection at /127.0.0.1:2379 with /127.0.0.1:2430 receive” prio=6 tid=0x0405a800 nid=0x708c runnable [0x081cf000]

java.lang.Thread.State: RUNNABLE

at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:273)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:255)

at sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:136)

at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)

  • locked <0x2d0a83c0> (a sun.nio.ch.Util$2)

  • locked <0x2d0a83b0> (a java.util.Collections$UnmodifiableSet)

  • locked <0x2d0a8190> (a sun.nio.ch.WindowsSelectorImpl)

at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)

at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:84)

at org.gradle.messaging.remote.internal.inet.SocketConnection$SocketInputStream.read(SocketConnection.java:158)

at java.io.DataInputStream.read(DataInputStream.java:132)

at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2265)

at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2278)

at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)

at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)

at java.io.ObjectInputStream.(ObjectInputStream.java:279)

at org.gradle.util.ClassLoaderObjectInputStream.(ClassLoaderObjectInputStream.java:29)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectInputStream.(Message.java:152)

at org.gradle.messaging.remote.internal.Message.receive(Message.java:38)

at org.gradle.messaging.remote.internal.DefaultMessageSerializer.read(DefaultMessageSerializer.java:31)

at org.gradle.messaging.remote.internal.inet.SocketConnection.receive(SocketConnection.java:80)

at org.gradle.messaging.remote.internal.DelegatingConnection.receive(DelegatingConnection.java:31)

at org.gradle.messaging.remote.internal.MessageHub$EndOfStreamConnection.receive(MessageHub.java:212)

at org.gradle.messaging.remote.internal.MessageHub$EndOfStreamConnection.receive(MessageHub.java:195)

at org.gradle.messaging.remote.internal.AsyncConnectionAdapter$ConnectionReceive.receive(AsyncConnectionAdapter.java:77)

at org.gradle.messaging.dispatch.AsyncReceive.receiveMessages(AsyncReceive.java:149)

at org.gradle.messaging.dispatch.AsyncReceive.access$000(AsyncReceive.java:36)

at org.gradle.messaging.dispatch.AsyncReceive$1.run(AsyncReceive.java:90)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0b6f08> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“socket connection at /127.0.0.1:2379 with /127.0.0.1:2430 dispatch Thread 2” prio=6 tid=0x04622800 nid=0x7094 waiting on condition [0x0817f000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d0b6418> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.DelayedReceive.receive(DelayedReceive.java:50)

at org.gradle.messaging.dispatch.AsyncReceive.receiveMessages(AsyncReceive.java:149)

at org.gradle.messaging.dispatch.AsyncReceive.access$000(AsyncReceive.java:36)

at org.gradle.messaging.dispatch.AsyncReceive$1.run(AsyncReceive.java:90)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0b6920> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“socket connection at /127.0.0.1:2379 with /127.0.0.1:2430 dispatch” prio=6 tid=0x05ff9800 nid=0x709c waiting on condition [0x0812f000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d0b64f8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:115)

at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:74)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0b65a0> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“socket connection at /127.0.0.1:2379 with /127.0.0.1:2430 send” prio=6 tid=0x03fb3000 nid=0x6f1c waiting on condition [0x080df000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d0b5d18> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:115)

at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:74)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0b5dc0> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Incoming Connection [3d3ee402-cb78-4094-96fa-6cf6e0a9c161 port:2379, addresses:[/127.0.0.1]]:3 message router” prio=6 tid=0x03f5c400 nid=0x6db4 waiting on condition [0x0808f000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d0b2f50> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:115)

at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:74)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0b2ff8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Run Gradle Worker 4 Thread 5” prio=6 tid=0x04c51800 nid=0x71f4 runnable [0x054ef000]

java.lang.Thread.State: RUNNABLE

at java.io.FileInputStream.readBytes(Native Method)

at java.io.FileInputStream.read(FileInputStream.java:177)

at org.gradle.process.internal.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:48)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d08a528> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Run Gradle Worker 4 Thread 4” prio=6 tid=0x03268000 nid=0x71f0 runnable [0x0549f000]

java.lang.Thread.State: RUNNABLE

at java.io.FileInputStream.readBytes(Native Method)

at java.io.FileInputStream.read(FileInputStream.java:199)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)

at java.io.BufferedInputStream.read(BufferedInputStream.java:317)

  • locked <0x2d088070> (a java.io.BufferedInputStream)

at java.io.FilterInputStream.read(FilterInputStream.java:90)

at org.gradle.process.internal.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:48)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d08a350> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Run Gradle Worker 4 Thread 2” prio=6 tid=0x05b01400 nid=0x7004 runnable [0x0516f000]

java.lang.Thread.State: RUNNABLE

at java.lang.ProcessImpl.waitFor(Native Method)

at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:89)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d07eab0> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Run Gradle Worker 4” prio=6 tid=0x04581800 nid=0x6fc4 waiting on condition [0x04fcf000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d07e6c8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:115)

at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:74)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d07e760> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Dispatch org.gradle.api.internal.tasks.testing.processors.RestartEveryNTestClassProcessor@c079a4” prio=6 tid=0x04aaf400 nid=0x71a8 waiting on condition [0x04f7f000]

java.lang.Thread.State: TIMED_WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2d07e4c0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)

at java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1253)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:92)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:82)

at org.gradle.process.internal.DefaultExecHandle.waitForFinish(DefaultExecHandle.java:279)

at org.gradle.process.internal.DefaultWorkerProcess.waitForStop(DefaultWorkerProcess.java:134)

at org.gradle.api.internal.tasks.testing.worker.ForkingTestClassProcessor.stop(ForkingTestClassProcessor.java:79)

at org.gradle.api.internal.tasks.testing.processors.RestartEveryNTestClassProcessor.endBatch(RestartEveryNTestClassProcessor.java:62)

at org.gradle.api.internal.tasks.testing.processors.RestartEveryNTestClassProcessor.stop(RestartEveryNTestClassProcessor.java:56)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:37)

at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)

at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:30)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:133)

at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:74)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2d0570b0> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“Dispatch org.gradle.api.internal.tasks.testing.results.AttachParentTestResultProcessor@135727” prio=6 tid=0x04a04c00 nid=0x3d60 waiting on condition [0x04eaf000]

java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2cffd4d0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:115)

at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:74)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:70)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2cffd568> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“*** Profiler Agent Special Execution Thread 6” daemon prio=6 tid=0x03c68c00 nid=0x5610 in Object.wait() [0x0580f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

  • waiting on <0x2bc35cc8> (a java.lang.Object)

at java.lang.Object.wait(Object.java:485)

at org.netbeans.lib.profiler.server.ProfilerServer$SeparateCmdExecutionThread.run(ProfilerServer.java:289)

  • locked <0x2bc35cc8> (a java.lang.Object)

Locked ownable synchronizers:

  • None

“*** JFluid Monitor thread ***” daemon prio=10 tid=0x02ec6000 nid=0x691c waiting on condition [0x057bf000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

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

at org.netbeans.lib.profiler.server.Monitors$SurvGenAndThreadsMonitor.run(Monitors.java:186)

Locked ownable synchronizers:

  • None

“*** Profiler Agent Communication Thread” daemon prio=10 tid=0x0302f400 nid=0x66dc runnable [0x0576f000]

java.lang.Thread.State: RUNNABLE

at java.net.SocketInputStream.socketRead0(Native Method)

at java.net.SocketInputStream.read(SocketInputStream.java:129)

at java.net.SocketInputStream.read(SocketInputStream.java:182)

at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2248)

at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2428)

at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2498)

at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2570)

at java.io.ObjectInputStream.read(ObjectInputStream.java:819)

at org.netbeans.lib.profiler.wireprotocol.WireIO.receiveCommandOrResponse(WireIO.java:88)

at org.netbeans.lib.profiler.server.ProfilerServer.listenToClient(ProfilerServer.java:1703)

at org.netbeans.lib.profiler.server.ProfilerServer.run(ProfilerServer.java:684)

Locked ownable synchronizers:

  • None

“RMI TCP Connection(2)-28.97.52.249” daemon prio=6 tid=0x03cadc00 nid=0x68f8 runnable [0x050cf000]

java.lang.Thread.State: RUNNABLE

at java.net.SocketInputStream.socketRead0(Native Method)

at java.net.SocketInputStream.read(SocketInputStream.java:129)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

at java.io.BufferedInputStream.read(BufferedInputStream.java:237)

  • locked <0x2bc312f0> (a java.io.BufferedInputStream)

at java.io.FilterInputStream.read(FilterInputStream.java:66)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:517)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2bc1cc78> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“JMX server connection timeout 73” daemon prio=6 tid=0x030ac000 nid=0x688c in Object.wait() [0x0571f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

  • waiting on <0x2bc22f20> (a [I)

at com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(ServerCommunicatorAdmin.java:150)

  • locked <0x2bc22f20> (a [I)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • None

“RMI Scheduler(0)” daemon prio=6 tid=0x03d0c400 nid=0x6870 waiting on condition [0x056cf000]

java.lang.Thread.State: TIMED_WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x2bc14820> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)

at java.util.concurrent.DelayQueue.take(DelayQueue.java:164)

at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:609)

at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:602)

at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • None

“RMI TCP Accept-0” daemon prio=6 tid=0x02b55400 nid=0x64cc runnable [0x0507f000]

java.lang.Thread.State: RUNNABLE

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408)

  • locked <0x2bc14ea8> (a java.net.SocksSocketImpl)

at java.net.ServerSocket.implAccept(ServerSocket.java:462)

at java.net.ServerSocket.accept(ServerSocket.java:430)

at sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:34)

at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:369)

at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • None

“Incoming TCP Connector” prio=6 tid=0x03ed4400 nid=0x5ff0 runnable [0x04f2f000]

java.lang.Thread.State: RUNNABLE

at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)

at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:152)

  • locked <0x2b9ca5f8> (a java.lang.Object)

at org.gradle.messaging.remote.internal.inet.TcpIncomingConnector$Receiver.run(TcpIncomingConnector.java:105)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:662)

Locked ownable synchronizers:

  • <0x2b9ca800> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

“com.google.common.base.internal.Finalizer” daemon prio=6 tid=0x042b1400 nid=0x60b4 in Object.wait() [0x04e3f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

  • waiting on <0x2b742800> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)

  • locked <0x2b742800> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)

at com.google.common.base.internal.Finalizer.run(Finalizer.java:127)

Locked ownable synchronizers:

  • None

“Low Memory Detector” daemon prio=6 tid=0x02ba8400 nid=0x5c34 runnable [0x00000000]

java.lang.Thread.State: RUNNABLE

Locked ownable synchronizers:

  • None

“CompilerThread0” daemon prio=10 tid=0x02ba2400 nid=0x5e2c waiting on condition [0x00000000]

java.lang.Thread.State: RUNNABLE

Locked ownable synchronizers:

  • None

“Attach Listener” daemon prio=10 tid=0x02ba0c00 nid=0x2584 waiting on condition [0x00000000]

java.lang.Thread.State: RUNNABLE

Locked ownable synchronizers:

  • None

“Signal Dispatcher” daemon prio=10 tid=0x02b9f400 nid=0x5c08 runnable [0x00000000]

java.lang.Thread.State: RUNNABLE

Locked ownable synchronizers:

  • None

“Finalizer” daemon prio=8 tid=0x02b98800 nid=0x5c60 in Object.wait() [0x02d2f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

  • waiting on <0x295902b0> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)

  • locked <0x295902b0> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)

at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Locked ownable synchronizers:

  • None

“Reference Handler” daemon prio=10 tid=0x02b97000 nid=0x5be4 in Object.wait() [0x02cdf000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

  • waiting on <0x29590340> (a java.lang.ref.Reference$Lock)

at java.lang.Object.wait(Object.java:485)

at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)

  • locked <0x29590340> (a java.lang.ref.Reference$Lock)

Locked ownable


How can I avoid slow builds and even hangs when connecting to repositories?
(Szczepan Faber) #2

Hey Greg,

Got few questions:

  1. Does the build continue ok after this ~5 mins lag or you have to kill it? 2. Is this reproducible every time? 3. Anything you could find out that is causing the problem (i.e. what if you comment out AfterSuite temporarily) to help us nailing it down? 4. Are the tests passing or failing with some exception?

Thanks a lot for reporting!