java.net.SocketException: Too many open files

來源:互聯網
上載者:User

標籤: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  

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.