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

Thread: [SOLVED] Error "Too open many file" on ubuntu 9.04

  1. #1
    hoangnam8484 Guest

    Default [SOLVED] Error "Too open many file" on ubuntu 9.04

    + can not check mail when this error
    + Often it appears on every afternoon
    + I did a few things to the forum but did not resolve the problem
    Code:
    2009-12-01 14:22:33,542 WARN  [btpool0-9 - Acceptor0 SelectChannelConnector@0.0.0.0:80] [] log - EXCEPTION 
    java.io.IOException: Too many open files
    	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
    	at org.mortbay.jetty.nio.SelectChannelConnector$1.acceptChannel(SelectChannelConnector.java:75)
    	at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:565)
    	at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
    	at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
    	at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:707)
    	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
    + Here are some information systems
    Code:
    zimbra@server1:~$ zmcontrol -v
    Release 6.0.0_GA_1805.UBUNTU9 UBUNTU9 FOSS edition.
    zimbra@server1:~$ ulimit -n
    524288
    root@server1:~# ulimit -n
    1024
    in  /etc/security/limits.conf
    * soft nofile 524288
    * hard nofile 524288
    ---------------------------------
    in /etc/pam.d/common-session
    # here are the per-package modules (the "Primary" block)
    session [default=1]                     pam_permit.so
    # here's the fallback if no module succeeds
    session requisite                       pam_deny.so
    # prime the stack with a positive return value if there isn't one already;
    # this avoids us returning an error just because nothing sets a success code
    # since the modules above will each just jump around
    session required                        pam_permit.so
    # and here are more per-package modules (the "Additional" block)
    session required        pam_unix.so
    session optional                        pam_ck_connector.so nox11
    # end of pam-auth-update config
    #session        required        pam_limits.so
    session required        pam_limits.so
    Thank you for all your help
    Last edited by hoangnam8484; 12-01-2009 at 09:00 PM.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,491
    Rep Power
    56

    Default

    Did you restart Zimbra or reboot the server after making any changes (you should have done)? As you're getting this response:

    Code:
    root@server1:~# ulimit -n
    1024
    It would imply you didn't restart Zimbra. In future, when you post details about a problem please include a description of what you've actually done or changed on your system to try and fix the problem.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,316
    Rep Power
    13

    Default

    He's also using a non supported OS...

  4. #4
    hoangnam8484 Guest

    Default

    -I worked under the guidance of the article on "this"
    -then restart
    -and now I am waiting for results

  5. #5
    hoangnam8484 Guest

    Default

    I did follow the instructions but my problem is still unresolved.

    help me!
    Code:
    root@server1:~# ulimit -a
    core file size          (blocks, -c) 0
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 20
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 16382
    max locked memory       (kbytes, -l) 64
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 1024
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) 8192
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) unlimited
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
    Last edited by hoangnam8484; 12-05-2009 at 05:06 AM.

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,491
    Rep Power
    56

    Default

    The command you ran in the above post should have been done as the Zimbra user, you should also post the output of the following commands:

    Code:
    cat /etc/security/limits.conf
    cat/etc/pam.d/common-session
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    hoangnam8484 Guest

    Default

    Code:
    zimbra@server1:~$ ulimit -a
    core file size          (blocks, -c) 0
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 20
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 16382
    max locked memory       (kbytes, -l) 64
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 524288
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) 8192
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) unlimited
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
    file limit.conf

    Code:
    root@server1:~# cat /etc/security/limits.conf
    
    # End of file
    # nam them vao
    
    #* - nofile 524288
    #* hard nofile 524288
    * soft nofile 524288
    * hard nofile 524288
    Code:
    root@server1:~# cat /etc/pam.d/common-session
    #
    # /etc/pam.d/common-session - session-related modules common to all services
    #
    # This file is included from other service-specific PAM config files,
    # and should contain a list of modules that define tasks to be performed
    # at the start and end of sessions of *any* kind (both interactive and
    # non-interactive).
    #
    # As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
    # To take advantage of this, it is recommended that you configure any
    # local modules either before or after the default block, and use
    # pam-auth-update to manage selection of other modules.  See
    # pam-auth-update(8) for details.
    
    # here are the per-package modules (the "Primary" block)
    session [default=1]                     pam_permit.so
    # here's the fallback if no module succeeds
    session requisite                       pam_deny.so
    # prime the stack with a positive return value if there isn't one already;
    # this avoids us returning an error just because nothing sets a success code
    # since the modules above will each just jump around
    session required                        pam_permit.so
    # and here are more per-package modules (the "Additional" block)
    session required        pam_unix.so 
    session optional                        pam_ck_connector.so nox11
    # end of pam-auth-update config
    #session        required        pam_limits.so
    session required        pam_limits.so
    thanks you very much!!

  8. #8
    hoangnam8484 Guest

    Default

    help me!!!

  9. #9
    hoangnam8484 Guest

    Default



    no way why?

  10. #10
    cdmdotnet is offline Intermediate Member
    Join Date
    May 2008
    Posts
    24
    Rep Power
    7

    Default

    Did you get a solution to this at all?

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. Replies: 1
    Last Post: 09-10-2009, 03:52 AM
  2. Get emails out of zimbra or get it working again?
    By kingfeanor in forum Migration
    Replies: 9
    Last Post: 11-25-2008, 01:02 AM
  3. [SOLVED] Zimbra Open Source Edition on Ubuntu Server 7.10
    By soulskater in forum Administrators
    Replies: 2
    Last Post: 01-17-2008, 07:55 AM
  4. Error message in Server status
    By Max Ma in forum Installation
    Replies: 20
    Last Post: 04-19-2007, 08:55 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
  •