jboss “Too many open files” 错误

现象:1)jboss java进程能起来,log 显示“Too many open files”错误

     2)网站无法访问,重启也无效

解决

I had this problem also (on linux). What I did:

  1. Check limits : ulimit -a
  2. check 2 lines in output:
    open files                      (-n) 1024
    max user processes              (-u) 1024

Set both parameters ( for example in your .bash_profile  eg: /etc/profile)

    ulimit -SHn 100000
    ulimit -SHu 100000

In my case I had to change both parameters to solve the problem.

posted @ 2012-08-05 23:04  透传云  阅读(673)  评论(0编辑  收藏  举报