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.

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:
    6
    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:
    1
    Do you mean you server load goes very high during the operation?
     
  3. madaboutlinux

    madaboutlinux Well-Known Member

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

    during the log rotation and see what error exact you receive.
     
  4. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    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:
    6
    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:
    1
    >> 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,052
    Likes Received:
    2
    Trophy Points:
    38
    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.
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
  9. charliesxia

    charliesxia Member

    Joined:
    Aug 3, 2006
    Messages:
    18
    Likes Received:
    1
    Trophy Points:
    0
    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:
    6
    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