Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: [SOLVED] Too many open files error after increasing zimbra_session_limit_imap

  1. #1
    jeffw is offline Loyal Member
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    7

    Default [SOLVED] Too many open files error after increasing zimbra_session_limit_imap

    I increased the zimbra_session_limit_imap from 5 to 10 (from Bug 25091 - 5 concurrent IMAP selected folders per user is too low ) after upgrading to 5.0.4 last night and since then, things have been bad.

    I'm getting 'too man files open' errors in the mailbox.log, and postfix is unable to deliver via lmtp.

    The postfix log shows:

    Mar 25 22:47:12 fs1 postfix/lmtp[20173]: E6B136C963F17: to=<jeffw@fs1.rfc1918.smoe.org>, relay=fs1.rfc1918.smoe.org[204.152.64.2]:7025, delay=962, delays=653/0.07/309/0, dsn=4.4.2, status=deferred (conversation with fs1.rfc1918.smoe.org[204.152.64.2] timed out while receiving the initial server greeting)

    And here's a sample from the mailbox.log:



    2008-03-25 17:12:03,935 WARN [ImapSSLServer-10] [name=jeffw@fs1.rfc1918.smoe.org;mid=3;ip=130.64.10 0.41;] imap - ignoring error during UID FETCH:
    com.zimbra.common.service.ServiceException: system failure: IOException while retrieving content for item 264795
    ExceptionId:ImapSSLServer-10:1206479523935:13358c51319891c4
    Code:service.FAILURE
    at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:253)
    at com.zimbra.cs.mailbox.MessageCache.getMimeMessage( MessageCache.java:252)
    at com.zimbra.cs.mailbox.Message.getMimeMessage(Messa ge.java:284)
    at com.zimbra.cs.imap.ImapMessage.getMimeMessage(Imap Message.java:176)
    at com.zimbra.cs.imap.ImapHandler.fetch(ImapHandler.j ava:2937)
    at com.zimbra.cs.imap.ImapHandler.doFETCH(ImapHandler .java:2788)
    at com.zimbra.cs.imap.ImapHandler.executeRequest(Imap Handler.java:402)
    at com.zimbra.cs.imap.TcpImapHandler.processCommand(T cpImapHandler.java:151)
    at com.zimbra.cs.tcpserver.ProtocolHandler.processCon nection(ProtocolHandler.java:160)
    at com.zimbra.cs.tcpserver.ProtocolHandler.run(Protoc olHandler.java:128)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.FileNotFoundException: /opt/zimbra/store/0/3/msg/64/264795-237760.msg (Too many open files)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.jav a:106)
    at com.zimbra.cs.store.FileBlobStore.getContent(FileB lobStore.java:371)
    at com.zimbra.cs.store.FileBlobStore.getContent(FileB lobStore.java:365)
    at com.zimbra.cs.mailbox.MessageCache.fetchFromStore( MessageCache.java:270)
    at com.zimbra.cs.mailbox.MessageCache.getMimeMessage( MessageCache.java:214)
    ... 10 more

  2. #2
    jeffw is offline Loyal Member
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    7

  3. #3
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Jeff could you IM me? - I'm betting it's something else.

  4. #4
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    This your home Ubuntu box? Watch your /proc/sys/fs/file-nr overtime.

  5. #5
    jeffw is offline Loyal Member
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    7

    Default

    Doing some digging, I found Bug 24188 - ZCS becomes unusable every couple weeks due to running out of file descriptors

    It looks like Zimbra took steps to raise the limits in 5.02. In my /opt/zimbra/.bashrc file, I have:

    ulimit -n 524288 > /dev/null 2>&1

    and limits.conf has:

    zimbra soft nofile 524288
    zimbra hard nofile 524288

    However if I do:

    fs1:/opt/zimbra/log# su zimbra -c 'bash -c "ulimit -n"'
    1024

    The file limits are still 1024.

  6. #6
    jeffw is offline Loyal Member
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    7

    Default

    Quote Originally Posted by mmorse View Post
    This your home Ubuntu box? Watch your /proc/sys/fs/file-nr overtime.
    It's stable now at 3580, but I put the zimbra_session_limit_imap back to 5 to get things back to normal.

  7. #7
    jeffw is offline Loyal Member
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    7

    Default

    Bug 24897 - update /etc/pam.d/su on ubuntu so ulimits get set properly makes mention of a ubuntu bug.

    in my /etc/pam.d/su file, I have:

    # session required pam_limits.so

    I'll try uncommenting it and seeing if that helps.

  8. #8
    jeffw is offline Loyal Member
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    7

    Default

    And it does:

    fs1:/opt/zimbra/log# !31
    su zimbra -c 'bash -c "ulimit -n"'
    524288

  9. #9
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Marking as solved - holler if that doesn't fix it.

  10. #10
    jeffw is offline Loyal Member
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    7

    Default

    Hopefully we can get that Ubuntu bug fixed...

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Too many open files error
    By sdemeyer in forum Administrators
    Replies: 7
    Last Post: 04-02-2008, 08:57 AM
  2. Error message in Server status
    By Max Ma in forum Installation
    Replies: 20
    Last Post: 04-19-2007, 08:55 AM
  3. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 06:47 AM
  4. Replies: 16
    Last Post: 09-07-2006, 06: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
  •