標籤:style blog color java os io strong 檔案
今天實施同事報現場有一個節點無法訪問,把現場的weblogic日誌拿回來,顯示如下:
<2014-8-13 下午01時15分01秒 CST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "wzDataSource": Io 異常: The Network Adapter could not establish the connection>
<2014-8-13 下午01時15分01秒 CST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "wzDataSource": Io 異常: The Network Adapter could not establish the connection>
<2014-8-13 下午01時15分01秒 CST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "wzDataSource": Io 異常: The Network Adapter could not establish the connection>
<2014-8-13 下午01時15分01秒 CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111:7003, failure count: 1, failing for 0 seconds, java.net.SocketException: Too many open files>
<2014-8-13 下午01時15分01秒 CST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "wzDataSource": Io 異常: The Network Adapter could not establish the connection>
<2014-8-13 下午01時15分02秒 CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111:7003, failure count: 2, failing for 1 seconds, java.net.SocketException: Too many open files>
<2014-8-13 下午01時15分04秒 CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111:7003, failure count: 3, failing for 3 seconds, java.net.SocketException: Too many open files>
<2014-8-13 下午01時15分07秒 CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111:7003, failure count: 4, failing for 6 seconds, java.net.SocketException: Too many open files>
<2014-8-13 下午01時15分11秒 CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111:7003, failure count: 5, failing for 10 seconds, java.net.SocketException: Too many open files>
<2014-8-13 下午01時15分16秒 CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111:7003, failure count: 6, failing for 15 seconds, java.net.SocketException: Too many open files>
<2014-8-13 下午01時15分22秒 CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111:7003, failure count: 7, failing for 21 seconds, java.net.SocketException: Too many open files>
<2014-8-13 下午01時15分29秒 CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111:7003, failure count: 8, failing for 28 seconds, java.net.SocketException: Too many open files>
<2014-8-13 下午01時15分37秒 CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111:7003, failure count: 9, failing for 36 seconds, java.net.SocketException: Too many open files>
<2014-8-13 下午01時15分46秒 CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111:7003, failure count: 10, failing for 45 seconds, java.net.SocketException: Too many open files>
<2014-8-13 下午01時15分46秒 CST> <Critical> <Server> <BEA-002617> <Attempting to close and reopen the server socket on on channel "Default" on 101.91.1.111:6003.>
<2014-8-13 下午01時15分56秒 CST> <Notice> <Server> <BEA-002614> <Reopening channel "Default" on 101.91.1.111:6003.>
<2014-8-13 下午01時15分56秒 CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default". The address 10.91.1.111 might be incorrect or another process is using port 6003: java.net.SocketException: Too many open files.>
分析日誌:出現無法開啟檔案的情況,是unix開啟檔案數量設定受限,據悉現場是安全整改將應用參數調整,改小了open file的設定,作如下調整:
1.設定 ulimit -u 65535
2.修改/etc/ security/ limits.conf在檔案末加上
soft nofile 65535
hard nofile 65535