weblogic部署war包_aix weblogic 安装_linux查看weblogic版本(40)

电脑杂谈  发布时间:2017-02-05 02:01:42  来源:网络整理

?uid=swg21170467

Technote (troubleshooting)

Problem(Abstract)

There is slow performance or a hang during HostName lookup.

Symptom

Thread dumps or javacores taken during the time of the slow response, or "hang threads" will show threads with the following lines at the top of the stack:

at java.net.Inet6AddressImpl.getLocalHostName(Native Method)

at java.net.InetAddress.getLocalHost(InetAddress.java:123)

Cause

The problem could be lookup issues between IPv6 versus IPv4. If the Domain Name System (DNS) server is not configured to handle IPv6 queries, the application may have to wait for the IPv6 query to time out for IPv6 queries.

These threads are waiting for a response for an IPv6 query. It is likely the the DNS server is not responding to the IPv6 query.

Resolving the problem

If your environment only uses IPv4, set the following argument for each process:

-Djava.net.preferIPv4Stack=true

This will disable IPv6 lookup requests and only use IPv4. To set this in the WebSphere Application Server, do the following:

Open the administrative console and navigate to:

Servers > Application Servers > server_name > Process Definition > Java Virtual Machine > Custom Properties(/Environment Entries)

Add the following name and value pair:

Name: java.net.preferIPv4Stack

Value: true

Click Apply, then save all changes.

Restart the application server.

If your environment uses IPv6, please have your network administrator check the DNS set up to ensure that it can respond properly to IPv6 queries.


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-30599-40.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...