SSL 操作线程大量blocked和大量CLOSE_WAIT 连接


网络出现大量:

close_wait

线程类似:

"pool-12-thread-44" prio=10 tid=0x00007fd1f0008800 nid=0x5bd9 waiting for monitor entry [0x00007fd0168ed000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at sun.security.util.MemoryCache.put(Cache.java:353)
	- waiting to lock <0x00007fd67c192730> (a sun.security.util.MemoryCache)
	at sun.security.ssl.SSLSessionContextImpl.put(SSLSessionContextImpl.java:181)
	at sun.security.ssl.ServerHandshaker.clientFinished(ServerHandshaker.java:1501)
	at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:243)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
	at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1004)
	- locked <0x00007fd78fe611a0> (a sun.security.ssl.SSLEngineImpl)
	at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:884)
	at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:758)
	- locked <0x00007fd6d0eef410> (a java.lang.Object)


最后确定为jdk小版本的一个bug:【jdk7在u_60修正,JDK6 在6u38修正,JDK8没细看也要注意下

JDK-8013809 : deadlock in SSLSocketImpl between between write and close

http://bugs.java.com/view_bug.do?bug_id=8013809


JDK 7 u_60 release log

http://www.oracle.com/technetwork/java/javase/2col/7u60-bugfixes-2202029.html


转载于:https://my.oschina.net/greki/blog/311683

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值