Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2003
    Location
    New Mexico
    Posts
    89

    Default AWSTATS high load fix

    Many of you may or may not know that when awstats runs it can and often does cause an extremely high load.

    The good news is I found the problems and know the fix but Cpanel keeps overwriting them and there doesn't seem to be a mass way to update all users at once.

    First Permission problems with the Domlogs to allow for purging when run by the users who update frequently and if you as host allow them to update via the browser.

    /usr/local/apache/domlogs/*.com These files need to have permissions to run from a CGI script if that option is enabled.

    /home/USER/tmp/awstats/awstats.USER.COM.conf

    PurgeLogFile=1 Its way down at the bottom of the config file in the optional section.

    Basically what it does is prevent the server from having to read the 50,000 lines from the days and weeks before each time Awstats updates which is usually daily.

    Awstat updates were causing my server to reach 100% load at times just processing the logs on high traffic sites.


    I am not submitting a TT or feature to CPANEL if you one of you zealots wish to please do. This little small modification to the User files can save tons of midnight loads and file lock errors when too much gets going on while the stats program runs.
    Donny J Lairson

    http://www.gunmuse.com

    He who laughs last thinks the slowest.

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    New Mexico
    Posts
    89

    Default

    You know I thought I would fool cpanel and switch to edge settings and manual update. Yet it still autoupdated last night and the crazy format conflict of the logs still happening froma few cpanel updates back.
    Donny J Lairson

    http://www.gunmuse.com

    He who laughs last thinks the slowest.

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2004
    Posts
    87

    Default

    hi
    I have this problem too

    cpu use 100%

    but I have 1000 accounts on my server

    how to fix all?

    thx

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2004
    Posts
    87

    Question

    up
    plz no ideas?

  5. #5
    Member
    Join Date
    Jun 2007
    Posts
    150

    Default Have this problem too...

    We're having this issue too, with thousands of customers that will take some time to fix manually. How about simply disabling awstats completely? If we disable it for all users, then it shouldn't be an issue any longer right???

    Thanks,
    Peter

  6. #6
    Member
    Join Date
    May 2003
    Posts
    11

    Default

    As for me - I prefer AWStats instead of Webalizer etc.
    Therefore I don't think that it is a good idea to remove it from CPanel...

    First of all YOU ARE ABLE to turn AWStats OFF
    Login to WHM!
    "Statistics Software Configuration" and "Tweak Settings" will help you with it.

    If you want to have AWStats but don't know how to avoid big load -
    just tweak things up via WHM "Tweak Settings"
    1. "Number of days between processing log files and bandwidth usage (default 1, decimal values are ok)" - set it so that the most visited site won't get more than 100'000 hits between stats run. 1 is ok for low traffic servers.
    2. Delete each domain's access logs after stats run - check it and you won't need to set PurgeLogFile=1 manually
    3. The load average above the number of cpus at which logs file processing should be suspended (default 0) - this setting will help you to avoid big loads as well

    Moreover,
    awstats config is generated for every website right before stats runs,
    the template is /usr/local/cpanel/etc/awstats.conf so you are able to do some modifications there and it will be applied to ALL domains AUTOMATICALLY. But note that this file will be overwritten every time cpanel upcp runs (if no immutable flags set).

Similar Threads & Tags
Similar threads

  1. Need Help , High load avg and high cpu usage
    By minitech in forum Optimization
    Replies: 2
    Last Post: 03-15-2011, 01:39 PM
  2. high load problem with high traffic on apache at nights
    By LAZer in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-04-2011, 08:12 PM
  3. Site stats cron (analog, awstats etc) resulting in high load
    By egsi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-11-2010, 05:53 AM
  4. Extremely high server load - BDflush running very high- possible hack
    By Blink2 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 07-30-2005, 06:46 PM
  5. high cpu and time processes... load average high
    By alexd in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-20-2004, 03:50 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube