The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sudden occurence of "kern.maxfiles" in freebsd box

Discussion in 'General Discussion' started by nyjimbo, Jun 23, 2008.

  1. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    Over the past few days we have seen one of our freebsd 6.2boxes with WHM 11.23.2 cPanel 11.23.3-C25623 producing errors:

    kern.maxfiles limit exceeded with uid 88 ......
    kern.maxfiles limit exceeded with uid 65534 ......

    88 is "mysql" and 65534 is "nobody"

    Most tasks (http, smtp, pop3) stop responding but we still
    have console control.

    By the time we get to the console we dont see anything unusual running, loads are pretty low. Mysql doesnt seem to be doing anything heavy, apache looks normal. So either the event is over or its something we cant notice from normal checking.

    In apache logs we see requests for graceful restart of apache and lots of messages about too many open files from different things in /usr/local/cpanel/log/error_log but nothing specific on whats going on.

    Logging just prior to the event shows nothing obvious pointing to a specific task and network i/o isnt
    heavy, mbufs are normal, exim queue is pretty much empty, etc.

    Does anyone know if anything big changed in the past week or so with how webmail or some other function. We havent added any new accounts to this machine in months and the loads, number of running tasks and memory use is pretty low and consistant.

    I know we can just tweak sysctl and/or the kernal but we never had this before so I would prefer to know the cause rather than just throw more filehandles at it.
     
    #1 nyjimbo, Jun 23, 2008
    Last edited: Jun 23, 2008
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    What is your kern.maxfiles currently set to?
     
  3. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    sysctl shows 12328

    Never changed it.
     
Loading...

Share This Page