LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-08-2006, 08:03 AM   #16
enormoustrousers
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Rep: Reputation: 0
Ignoramus chimes in


I am experiencing the same high wait problem. Most of the time I have a wait around 97% but every so often it will drop to 15% and apache will suddenly consume ~70% of the resources. Any thoughts? Does this sound familiar to anyone? If apache is the problem, how -- without iostat (I don't have it) -- can I determine which part of apache is the bottleneck?

Thanks
 
Old 12-10-2006, 01:35 PM   #17
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
I'd guess your problem is not using indexes for your queries so mysql is doing table scans.

If you get a lot of requests they will all bunch up in a trafic jam waiting for mysql.

Try loggin slow queries. (or pull out some query's and run run them like "describe select * from xtable where key = 'something'" and make sure they are using indexes)

-Andy
 
Old 12-10-2006, 11:41 PM   #18
enormoustrousers
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Rep: Reputation: 0
Yes, MySQL was my first thought as well. Many of the tables were missing indexes so I went back and created them. This helped a bit as did increasing the number of permitted connections and enabling the query cache (yes, MySQL was set up very poorly.) While that did help, Apache (and sometimes qmail) still tends to hog all the system resources. Any other thoughts as to what would cause such a backup?

Thanks
 
Old 12-11-2006, 12:54 PM   #19
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
do you have php/something script that apache is running? Does the script do disk io? (load text files? anything?)

If you have iowait times, then, if you think about it, what processes are doing a lot of disk stuff?

-Andy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Too high load, how to tweak? newlinuxnewbie Linux - General 13 10-31-2009 12:57 PM
Load Avg High/Phys Mem High teamh Debian 2 12-26-2006 05:03 PM
My load on computer is too high imi@tux Linux - Newbie 7 03-04-2006 04:48 AM
high mysql load hardigunawan Linux - General 0 03-04-2003 01:43 AM
Unusually high load subhasis_ray Linux - General 5 09-17-2002 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration