qwerthhusn
2019-08-22 15:57:29 +08:00
HttpClient 的 BUG,使用默认的 API,没瞎设置什么参数,最后所有的线程都卡死在这里
"XNIO-1 task-3" #58 prio=5 os_prio=0 cpu=214.82ms elapsed=61392.57s tid=0x00007fabf404a800 nid=0x1a972 waiting on condition [0x00007fac577fc000]
java.lang.Thread.State: WAITING (parking)
at jdk.internal.misc.Unsafe.park(java.base@11.0.3/Native Method)
- parking to wait for <0x000000008994e000> (a java.util.concurrent.CompletableFuture$Signaller)
at java.util.concurrent.locks.LockSupport.park(java.base@11.0.3/LockSupport.java:194)
at java.util.concurrent.CompletableFuture$Signaller.block(java.base@11.0.3/CompletableFuture.java:1796)
at java.util.concurrent.ForkJoinPool.managedBlock(java.base@11.0.3/ForkJoinPool.java:3128)
at java.util.concurrent.CompletableFuture.waitingGet(java.base@11.0.3/CompletableFuture.java:1823)
at java.util.concurrent.CompletableFuture.get(java.base@11.0.3/CompletableFuture.java:1998)
at jdk.internal.net.http.HttpClientImpl.send(java.net.http@11.0.3/HttpClientImpl.java:541)
at jdk.internal.net.http.HttpClientFacade.send(java.net.http@11.0.3/HttpClientFacade.java:119)