Load averages high

They have: 1 posts

Joined: Dec 2009

Greetings!

I have high load averages on server. They go over 12.

What I noticed is that some log files were huge. For instance, thw slow-query log was over 450MB. I disabled it and it seems that load averages droped a bit. Not really sure, though.

Is it possible that logs can use a lot of CPU, and if so are there some other logs I should consider disabling/emptying?

Any suggestions are more than welcome! Smiling

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

You can tell if file accesses are causing high load averages by looking at the iowait percentage in top (labelled 'wa' on our copy of top).

I wouldn't have thought log files would cause this problem, however. More likely is the database reading/writing to database files or the server swapping virtual memory.

a Padded Cell our articles site!

wilonai10's picture

They have: 3 posts

Joined: Feb 2010

Hi I have gone through your post. And yes it is possible that sometime Log files can use a huge portion of CPU. And that time your load level increases And your server become slow. So it is wise to disable those log files. Thank you very much for your posting.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.