[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Whats Causing The Overload
- Subject: Re: [cobalt-users] Whats Causing The Overload
- From: Ursula <ursulasays@xxxxxxxxxxxx>
- Date: Thu Dec 19 07:46:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
--- ISEE Multimedia <mail@xxxxxxxxxxxxxxxxxxx> wrote:
> Hi All.
>
> I really need some help in sorting this one out.
>
> I am running a Raq4 256 and it seems to be dying on
> me nearly every day now.
>
> I have some questions and information which should
> help you to help me. I
> have searched and done as much as i could find in
> the archives and on
> goodle, and im a little wiser but not much. Any
> pointers, help you can give
> me would be much appreciated.
>
> 1. Log rotation / analog / split logs seems to take
> forever to complete, and
> i would say this is a factor to the CPU / MEM usage.
> Is there a way to
> check what time the cron for this starts? as I think
> its not starting at
> 4:00am and how do i change the time to say start at
> 1am.
Changing the time it starts isn't going to do you much
good in the long run - I won't go into long details,
as it's been covered in this list quite a few times,
but the anaolg .cache and .stats files for each site
can get HUGE and seriously effect the daily stats
jobs. For our raq4s, we run a cron job every month
that removes them. It can literally make the
difference beterrn stats that complete within an hour,
and ones that could go on for 4 hours or more.
search these archives, the script for trimming the
cache files is in here. From memory, it is something
like:
#!/bin/sh
#clear out analog caches
rm /home/sites/site*/logs/ftp.cache*
rm /home/sites/site*/logs/ftp.stats
rm /home/sites/site*/logs/mail.cache*
rm /home/sites/site*/logs/mail.stats
rm /home/sites/site*/logs/web.cache*
rm /home/sites/site*/logs/web.stats
rm /home/sites/home/logs/ftp.cache*
rm /home/sites/home/logs/ftp.stats
rm /home/sites/home/logs/mail.cache*
rm /home/sites/home/logs/mail.stats
rm /home/sites/home/logs/web.cache*
rm /home/sites/home/logs/web.stats
rm /home/.cobalt/report/ftp.cache*
rm /home/.cobalt/report/ftp.stats
rm /home/.cobalt/report/mail.cache*
rm /home/.cobalt/report/mail.stats
rm /home/.cobalt/report/web.cache*
rm /home/.cobalt/report/web.stats
a word of warning - this will clear out the statistics
completely for the raqs built-in stats. If I remember
correctly, webalizer is OK as it keep its own files.
=====
--
Ursula
http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your seasons greetings online this year!