Full thread dump "HttpClient-1-SelectorManager@1929" daemon prio=5 tid=0x14 nid=NA runnable java.lang.Thread.State: RUNNABLE at sun.nio.ch.KQueue.poll(KQueue.java:-1) at sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:122) at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:129) - locked <0xb33> (a sun.nio.ch.KQueueSelectorImpl) - locked <0xb34> (a sun.nio.ch.Util$2) at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:141) at jdk.internal.net.http.HttpClientImpl$SelectorManager.run(HttpClientImpl.java:889) "main@1" prio=5 tid=0x1 nid=NA waiting java.lang.Thread.State: WAITING at jdk.internal.misc.Unsafe.park(Unsafe.java:-1) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:717) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1074) at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:276) at HttpClientIssue.main(HttpClientIssue.java:187) "Common-Cleaner@2864" daemon prio=8 tid=0xc nid=NA waiting java.lang.Thread.State: WAITING at java.lang.Object.wait(Object.java:-1) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155) at jdk.internal.ref.CleanerImpl.run(CleanerImpl.java:140) at java.lang.Thread.run(Thread.java:833) at jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:162) "Thread-0@699" prio=5 tid=0x11 nid=NA sleeping java.lang.Thread.State: TIMED_WAITING at java.lang.Thread.sleep(Thread.java:-1) at HttpClientIssue$LongRunningApp.run(HttpClientIssue.java:52) at java.lang.Thread.run(Thread.java:833) "Reference Handler@2861" daemon prio=10 tid=0x2 nid=NA runnable java.lang.Thread.State: RUNNABLE at java.lang.ref.Reference.waitForReferencePendingList(Reference.java:-1) at java.lang.ref.Reference.processPendingReferences(Reference.java:253) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:215) "Finalizer@2862" daemon prio=8 tid=0x3 nid=NA waiting java.lang.Thread.State: WAITING at java.lang.Object.wait(Object.java:-1) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:176) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:172) "Signal Dispatcher@2863" daemon prio=9 tid=0x4 nid=NA runnable java.lang.Thread.State: RUNNABLE "Notification Thread@663" daemon prio=9 tid=0x10 nid=NA runnable java.lang.Thread.State: RUNNABLE