首页 > 代码库 > java.net.SocketException: Too many open files
java.net.SocketException: Too many open files
今天实施同事报现场有一个节点无法访问,把现场的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
2.修改/etc/ security/ limits.conf在文件末加上
soft nofile 65535
hard nofile 65535
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。