3 Replies Latest reply on Nov 10, 2005 10:07 PM by adrian.brock

    Jboss 4.0 JMS Support on Too Many open files

    pacicco

      Hi,

      I've got a JMS application on Jboss-4.0.0 setup on a SUN OS 5.8
      (Sun JVM 1.4.2_03).
      My application receives some queues from a JMS external server. When the queues are more than 1000 Jboss stopped working, printing an exception stating that there are "TOO MANY OPEN FILES". After restart, it
      worked again, but only untill 1000 files, then it stopped again.

      After searching the web, I found that this is caused by the limit on open
      file descriptors on unix. Then I set the parameters:

      set maxusers=512
      set max_nprocs=4116
      set maxuprc=2048
      set pt_cnt=2048
      set rlim_fd_max=8192
      set rlim_fd_cur=2048

      in /proc/system file.
      Afther this I set "ulimit -n unlimited" in ".profile" file of jboss user.

      When the JMS queues are more than the "unlimited" parameter on the UNIX machine, the exception is trown again.

      Is this a known bug with Jboss-4.0.0, or can I specify some parameters on jboss or do I have to reconfigure my system?

      Best regards
      Gianluca