码迷,mamicode.com
首页 > Web开发 > 详细

weblogic 12 套接字泄露处理方法

时间:2014-12-05 19:20:31      阅读:1839      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   ar   color   os   sp   for   

  现场weblogic报<DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1417715701920> <BEA-002631> <Max threshold reached for open sockets [total open sockets: 5,000, allowed max: 5,000]. No more connections allowed.>

   处理方法有两种:

bubuko.com,布布扣转到底部 bubuko.com,布布扣


In this Document

Symptoms
  Cause
  Solution
  References


APPLIES TO:

Oracle WebLogic Server - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

SYMPTOMS

In a lightly loaded staging environment, the maximum open sockets was reached as below.

06-Dec-2013 20:03:03 o‘clock GMT Warning Server rds09470app145 rdms1-restgp2b DynamicListenThread[Default] WLS Kernel 1386360183611 BEA-002631 Max threshold reached for open sockets [total open sockets: 1,000, allowed max: 1,000]. No more connections allowed.

In WLS 11g and 8.1 domains running on the same hardware with 1000 sockets, this issue was not observed.

CAUSE

Using NIOSocketMuxer (the default socket muxer in 12.1.2), the socket closure depends on the finalizer mechanism. If the finalizer thread does not kick in (e.g., no GC), the socket closure will not happen and you will reach the number of open sockets configured.

A second issue was that disabling the MAX-OPEN-SOCK-COUNT setting requires a reboot, although the console says that a reboot is unnecessary.

A third issue was that although the first issue is solved, a number of sockets in CLOSE_WAIT were still found, leading to the server ceasing to process requests.

Observations:

  1. For the first issue, when using JFR (that regularly kicks GC), the issue does not happen. The source code analysis confirms this.
  2. For the second issue, this is shown in console and while reproducing the first issue.
  3. For the third issue, one could watch, only on the customer instances, this phenomenon, although first issue was fixed! The same symptom occurred (leak of CLOSE_WAIT sockets) but in this case, stopping JFR does not make the issue disappear.

SOLUTION

Solution retained by this customer is to drop MAX-OPEN-SOCK-COUNT and to apply the known workaround against the deadlock. The other solution is to install the following patches on WLS 12.1.2:

REFERENCES


BUG:18396023 - NIO: MANY NATIVE SOCKETS IN CLOSE_WAIT, NO JAVA SOCKET LEAKS
BUG:18289179 - SETTING MAX-OPEN-SOCK-COUNT REQUIRES ENTITY REBOOT

weblogic 12 套接字泄露处理方法

标签:style   blog   http   io   ar   color   os   sp   for   

原文地址:http://blog.csdn.net/stevendbaguo/article/details/41751111

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!