websphere集群在DNS主服务器宕机后异常的处理办法

     工作中遇到了IBM websphere application server集群在DNS主服务器宕机后,门户单点登录入口异常的问题。通过查找文档,定位了问题的原因。在此共享。

     IBM官方知识库链接:http://www-01.ibm.com/support/docview.wss?uid=swg21251377

Problem(Abstract)

Nodeagent restarts all application servers on the node when DNS server is down if the system is not configured to use IPv6 in /etc/hosts. This problem occurs on IBM WebSphere Application Server V5.1 and V6.0 (all releases) and does not occur on V5.0.

故障的现象:如果系统没有在/etc/hosts中配置IPv6服务,nodeagent会在DNS宕机后重启所有的was。故障发生在was版本5.1和6.0。5.0版本不受影响。

Cause

In Java™ 2 SDK 1.4, JVM performs both IPv6 and IPv4 queries. If the system is not configured to use IPv6 in /etc/hosts, IPv6 queries will fail when DNS server is down. Nodeagent checks the status of applications on the node at one minute interval by way of the network. If nodeagent can not connect to an application server, it will assume that the server is hung and try to restart the server. So if nodeagent fails to lookup the hostname of its node, it will restart all the application servers in the same node.

故障发生的原因:在java 2 SDK 1.4中,java虚拟机相应IPv4和IPv6请求。如果系统没有在/etc/hosts中配置IPv6,IPv6请求会在DNS服务器宕机后停止。Nodeagent会每分钟检查应用服务器的状态,如果nodeagent不能连接到应用服务器,则nodeagent会认为服务器挂起并会自动重启该服务器。所以,如果nodeagent在/etc/hosts中没有找到该节点,则nodeagent会重启该node。

解决方案:

Resolving the problem

To solve this problem, you can select either way from the following 2 options;

  • Java solution
    Set the JVM custom property java.net.preferIPv4Stack to all servers including nodeagent and dmgr.
    1. Open the administrative console and navigate to:

      System Administration > Application Servers > server_name > Process Definition > Java Virtual Machine > Custom Properties

    2. Add the following name and value pair:

      Name: java.net.preferIPv4Stack
      Value: true

    3. Click Apply, then save all changes.

    4. Restart the application server.

  • AIX solution
    The following AIX APARs address this issue:

    For AIX V520: IY47908
    For AIX V510: IY48783

    Ensure that you AIX V5.1 and V5.2 systems are at the latest maintenance level.

    Run the following:

    vi /etc/netsvc.conf
    hosts=local,bind4


    or

    export NSORDER=local,bind4


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值