Results 1 to 4 of 4

Thread: Too many open files

  1. #1
    Join Date
    Nov 2007
    Posts
    4
    Rep Power
    8

    Default Too many open files

    It is now more than one month that quite often, especially on nights and weekends, Zimbra crashes, just starting from the tomcat service and catalina.out reports either:
    *** org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
    GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=7071]] ignored exception: java.net.SocketException: Too many open files
    ***

    or:
    *** org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
    GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]] ignored exception: java.net.SocketException: Too many open files
    ***

    Does any one knows a fix to this? We are really getting mad and the users getting very very angry and continuously ask for a mail software change...

  2. #2
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Welcome to the forums,

    Could you run zmcontrol -v and paste your output? -thanks (you can put it in your forum profile as well for easier reference)

  3. #3
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    post the output of these commands:

    sysctl -a |grep 'fs.file'
    grep zimbra /etc/security/limits.conf

    the sysctl command returns the total number of filehandles available to the system. if you do:
    lsof |grep zim |wc -l
    it will give you a crude estimate of how many processes zimbra is running (it also runs some commands as root/other users so not exactly accurate)

    also you don't say what os you're running

  4. #4
    Join Date
    Nov 2007
    Posts
    4
    Rep Power
    8

    Default Reply

    Thanks in advance for your help.

    $ uname -a

    Linux 2.6.20.12 #3 SMP Wed Jun 6 18:43:02CEST 2007 i686 i686 i386 GNU/Linux


    $ zmcontrol -v


    Release 4.5.10_GA_1575.FC5_20071117095155 FC5 FOSS edition

    $ lsof | grep zim | wc -l
    6057

    $ cat /proc/sys/fs/file-nr
    5928 0 295562

    $ sysctl -a |grep 'fs.file'
    fs.file-max = 295562
    fs.file-nr = 5872 0 295562

    $ lsof | grep zim | wc -l
    6054

    $ lsof | grep zim | wc -l
    6005

    and in the file /etc/security/limits.conf we have:

    zimbra soft nofile 10000
    zimbra hard nofile 10000

Similar Threads

  1. Error message in Server status
    By Max Ma in forum Installation
    Replies: 20
    Last Post: 04-19-2007, 09:55 AM
  2. Replies: 8
    Last Post: 02-27-2007, 04:10 AM
  3. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 07:47 AM
  4. Replies: 16
    Last Post: 09-07-2006, 07:39 AM
  5. The mailbox and mta dies in FC4 GA version
    By meikka in forum Installation
    Replies: 72
    Last Post: 03-16-2006, 05:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •