java - Thread is blocked when use restTemplate -
i encounter problem threads of app has locked/blocked when communicate remote server using spring's resttemplate. here jstack info of 1 blocked thread: "pool-1-thread-8" prio=10 tid=0x00007fbfd012d800 nid=0x27b1 runnable [0x00007fbfd7dfb000] java.lang.thread.state: runnable @ java.net.socketinputstream.socketread0(native method) @ java.net.socketinputstream.read(socketinputstream.java:129) @ java.io.bufferedinputstream.fill(bufferedinputstream.java:218) @ java.io.bufferedinputstream.read1(bufferedinputstream.java:258) @ java.io.bufferedinputstream.read(bufferedinputstream.java:317) - locked <0x00007fbfe40fe1f8> (a java.io.bufferedinputstream) @ sun.net.www.http.httpclient.parsehttpheader(httpclient.java:687) @ sun.net.www.http.httpclient.parsehttp(httpclient.java:632) @ sun.net.www.protocol.http.httpurlconnection.getinputstream(httpurlconnection.java:1072) - locked <0x00007