Web Hosting Talk







View Full Version : Controlling log size


Christopher
01-03-2002, 11:01 PM
Trying to discover why my server keeps freezing up with the cpu overburdened when traffic doesn't warrant it.

Found that some of my logs are huge, example:

/home/log/httpd/access

is over 140 megabytes.

Could the server having to open this large a file to write new entries be what is crippling my raq?

How do I set log size to a lower number? Is there one place I can go to set them all to a lower size?

Thanks,

Chris

Chicken
01-03-2002, 11:26 PM
Well, you can mv that one out and errrr... download it or delete it I suppose. It gets big, I know. When it gets big, bad things happen, I know.

Christopher
01-03-2002, 11:54 PM
I would be happy to just get rid of it if it makes my server feel better.

Under sites/site(number)/logs is a file called web.cache that is really big too, what does this file do and should I clean it out also?

What other logs would you suggest I clean out? There may be some that are hidden and that I am unaware of. I would like to clean as many out as I can so I can tell if that is causing the problems I have had with cpu overload.

Thank you,

Chris

--------------

'course, just looked at processes (ie - 'top') and postgres is using up 98% of the cpu right now, with the postmaster command... is this normal?

20848 postgres 20 5 2996 2996 2492 R N 0 98.0 0.5 101:06 postmaster

I don't have any mail on the server, don't have any mailing list going out, what the heck is it doing?

dnid
01-04-2002, 05:01 AM
Under sites/site(number)/logs is a file called web.cache that is really big too, what does this file do and should I clean it out also?

Yes, you should delete them, if they are > 10 MB. You can search the forum for web.cache because this has been discussed several times.

Thank you
Daniel