java.net.SocketException: Too many open files解决方法

Get current limit:

ulimit -n

cat /proc/sys/fs/file-nr

The default limit is 1024.

Get current number of open file descriptors:

lsof [-p pid] | wc -l

Increase the limit:

Edit /etc/security/limits.conf :

username hard nofile 32768

你可能感兴趣的:(java,.net,Security)