Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

HTTP down when log rotation

Discussion in 'General Discussion' started by desiguru, Jan 10, 2010.

  1. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    56
    My server's HTTP goes down every time log rotation runs. Is there a fix for this?
     
  2. everactive

    everactive Member

    Joined:
    Jan 10, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    Do you mean you server load goes very high during the operation?
     
  3. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,051
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Earth
    Check the Apache error logs at

    during the log rotation and see what error exact you receive.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    56
    Yes server load goes really high and that's why HTTP does not get served.
     
  5. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    56
    Would it help if I process logs four - five times a day?
     
  6. everactive

    everactive Member

    Joined:
    Jan 10, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    >> Main >> Server Configuration >> Tweak Settings >> The load average above the number of cpus at which logs file processing should be suspended (default 0)

    Set this option to 6.
     
  7. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,051
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Earth
    Yes, increase the value under Tweak Settings. BTW, how many domains you have on your server? If they are large in number it's not feasible to rotate them every 4-5 hours and also it puts additional strain on the server during the process. Rotate them every 12 hours and also monitor the Apache logs to see what error you receive when he process is stopped.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    The rotation performed by cpanellogd is dictated by the size of the file, rather than the age.

    Log rotation, by necessity, requires a restart of the service. This is true whether the service is MySQL, Apache or any other service.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. charliesxia

    charliesxia Member

    Joined:
    Aug 3, 2006
    Messages:
    18
    Likes Received:
    1
    Trophy Points:
    153
    cpanle should add an option to stop the apache log..:eek::eek::eek::eek::eek::eek::eek:
     
  10. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    56
    Here is whet I receive exactly.


    [Thu Jan 14 21:14:54 2010] [notice] Graceful restart requested, doing restart

    How come a graceful restart gets requested and server just stops serving HTTP requests?
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice