 |
 |
 |
 |
#267022 - 01/16/04 11:59 AM
6.4 ultra high CPU usage ??
|
Power User
Registered: 05/07/03
Posts: 96
Add to del.icio.us
Digg it
|
We just recently upgraded to 6.4 and Im now being told we're using a heck of a lot of cpu. How 'normal' are these numbers and what can be done to scale back this cpu hit like this?<br /><br />last pid: 65592; load averages: 0.42, 0.37, 0.33 up 23+15:53:37 06:31:58 <br />63 processes: 3 running, 60 sleeping <br />CPU states: 53.9% user, 0.0% nice, 36.0% system, 0.0% interrupt, 10.1% idle <br />Mem: 50M Active, 496M Inact, 137M Wired, 48K Cache, 112M Buf, 319M Free <br />Swap: 2032M Total, 2032M Free <br /> PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND <br />38076 mysql 45 0 19064K 15200K RUN 405:00 49.80% 49.80% mysqld <br /><br /><br />At the time, I had<br />There are 72 registered and 18 anonymous users online. <br />With on line settings set to 30 minutes. I have since scaled that back to 10 minutes.<br /><br />Input is sorely needed, we can NOT afford a dedicated server here.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#267025 - 01/16/04 07:42 PM
Re: 6.4 ultra high CPU usage ??
[Re: zerind]
|
Power User
Registered: 05/07/03
Posts: 96
|
DrChaos , persistant connections are off. We're not using them.<br /><br /><br />[]navaho said:<br />BSD box. 63 processes, only 3 running. Load is under one, which means that over the last few minutes you had almost no processes that had to wait in queue. Your not using much memory to speak of. <br /><br />It does look like your mysql is maybe using a bit more CPU than you would like, but that top snippet shows us nothing really. <br /><br />Next time you run into this we'll need more than what you've shown. All that says is that mysql is using a lot of process. Doesn't say who is using mysql or what they are using it for. Doesn't help us troubleshoot.<br /><br />Here's what will. - <br /><br />Next time this happens have them log into mysql and run the following<br /><br />show processlist;<br /><br />Then post the entire processlist as it appears. That will show which query is slow, who is running it, and what kind of connections you have. We can go from there, it'll help a lot.<br /><br />It would also help a lot if you posted a link to the site so we can take a look at your settings, useage patters, etc. [/]<br /><br />Im not very familiar with using commands in mysql, I merely type : [:"red"]show processlist; [/] as it appears in red ?
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|