`

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

    博客分类:
  • j2ee
阅读更多

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics