linux系统java.net.SocketException: Too many open files解决思路
linux系统java.net.SocketException: Too many open files解决思路
日期:2014-05-20 浏览次数:20764 次
linux系统java.net.SocketException: Too many open files 之前linux系统没有重整的时候程序在weblogic下运行正常,而且从效率上和并发上来讲基本没出现过问题, 但是后来linux系统重装后出现了下面问题,请高手指点。 java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at com.derun.socket.Server.listen(Server.java:31) at com.derun.socket.Server.<init>(Server.java:20) at com.derun.socket.Server.startServer(Server.javar:106)
------解决方案--------------------
打开/etc/security/limits.conf文件,查看下两项: root soft nofile root hard nofile 后面的值,如果太小,就加大,如果没有,就直接加进去:如:
root soft nofile 5000 root hard nofile 6000
------解决方案--------------------