Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2009
    Posts
    32

    Default Apache seems to be restarting everyday

    Hello,

    I have been checking my Todays CPU usage everyday for the last week and noticed the following:

    root 2.74 9.91 1.9
    Top Process %CPU 77.0 /usr/local/apache/bin/httpd -k graceful

    Why is apache getting restarted everyday? is this a fault or a setting somewhere?

    Thank you!

  2. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Apache restarting is perfectly normal and may actually happen hundreds of times throughout the course of the day without you even being aware of it.
    Anytime users change some settings, anytime you add or delete an account, addon domain, or subdomain, apache will be restarted. When you update the system, Apache is often restarted so this is normal.

    One thing that does concern me is the "77%" and for that I would take a little closer looker to see what is going on or what was happening in the server at that specific time.

  3. #3
    Member
    Join Date
    Oct 2009
    Posts
    32

    Default

    Hello,

    Thanks for the reply, yes thats the only thing that made me notice it today with it been 77% although I noticed the top line saying its based on 1 cpu so I guess its just a quarter of that...

    is there a way of seeing what was going on at that time?

    Thanks once again spiral

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    If you are looking at it live, "top" helps a bunch

    However, after the fact, you would want to try to get a fix on the time and then check that time against all logs to get a better feel what was going on around that particular time:

    /var/log
    /usr/local/apache/domlogs
    /usr/local/apache/logs
    /usr/local/cpanel/logs

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    What is your full cPanel version number?

Similar Threads & Tags
Similar threads

  1. Restarting apache
    By icare in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-17-2006, 04:14 AM
  2. Apache not restarting properly
    By russellhosting in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-22-2006, 08:36 PM
  3. Apache Failing and not restarting - PLEASE HELP
    By Chriz1977 in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 10-19-2006, 04:02 PM
  4. Apache restarting without any reason
    By CoolMike in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-09-2006, 01:14 AM
  5. Apache not restarting
    By compunet2 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-20-2003, 06:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube