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.

awstats server loading questions

Discussion in 'General Discussion' started by lbeachmike, Feb 24, 2007.

  1. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Hi there -

    I see that awstats is using a ton of server CPU resource on one of my accounts with only a 90 meg log file, which is smaller than many other accounts.

    I'm unsure how to determine why this is the case.

    Outside of troubleshooting, I'm wondering two things -

    1. Is there a way to turn off awstats processing on a single domain?

    2. How do I veryify that the logs are indeed being rotated?

    Thanks.

    Mike
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    The simplest thing to do her is use WHM's "tweak settings" to configure the server
    to delete log files after the stats program has been run.

    This will keep the logs small and improve stats updating performance
     
  3. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Thanks for the advice.

    Is there any consequence to using this configuration and deleting the log files after processing?

    Thanks.

    Mike
     
  4. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Actually, I just confirmed my settings, and indeed I am setup that way. I already have the following option enabled in Tweak Settings -

    > Delete each domain's access logs after stats run

    This appears to be the setting you are referring to.

    Any further suggestions?

    Thanks.

    Mike
     
  5. dwh2

    dwh2 Well-Known Member

    Joined:
    Jan 14, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    Ditto. same problem.
     
  6. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    One way to disable the awstats for the a domain is to set the permission of the awstats conf file, ie /home/username/tmp/awstats/awstats.conf to 000 and chattr it to +1. Now stats script will skip it.

    You may check the size of the domlog files at /usr/local/apache/domlogs.
    issue this command to check.
    ls -lh --sort=size | less

    Clear all those files which are more than 200 Mb.
     
Loading...

Share This Page