Questions tagged [cpu-usage]

The amount of processing units of the CPU used to execute a task and how long it takes.

685 questions
3
votes
4 answers

Nagios - measuring Average CPU Load

I've been looking for some hours now for a plugin that will notify me if one of my server's CPU Load has been over 90% for the past 5 hours. No luck looking around the Nagios Exchange. Can anyone help out? Thanks!
JustAGuy
  • 639
  • 3
  • 23
  • 38
3
votes
1 answer

Limit httpd.exe CPU usage

We are using Collabnet Subversion Edge in one of our VMs, and occasionally one of the httpd.exe processes spikes to ~100% and just sits there. I believe it's interfering with our overnight backup amongst other daily operations. Is there a way I can…
3
votes
1 answer

mysqld_safe at 100% CPU

I've seen this discussed in several places on the web, never with a clear answer. What does mysqld_safe do? What would cause it to go to 100% CPU and stay there? How can I make sure it doesn't happen again? Is there a way to at least make it run at…
itsadok
  • 1,869
  • 5
  • 22
  • 33
3
votes
1 answer

Why does a mysql query, that requires copying to tmp table, randomly sometimes consume 100% CPU during several seconds?

I have some crazy SQL queries in my PHP scripts which badly need some optimization. However the question is NOT about how to optimize them. These queries have a lot of "join"s and some bizarre "order by", and are done against tables with several…
matteo
  • 731
  • 2
  • 9
  • 21
3
votes
1 answer

Linux Load Averages and HyperThreads

My rough understanding of a Linux load Average is that for every integer a CPU core is working all the time. For example, 1 means on a 4 core system that 1 core is working at capacity. How does HyperThreading factor into this? Is it even considered…
Jacob
  • 9,204
  • 4
  • 45
  • 56
3
votes
4 answers

Why my server has high load despite mere 1.5% CPU usage

In this is what whm apache status says: Current Time: Sunday, 23-Dec-2012 05:13:40 CST Restart Time: Saturday, 22-Dec-2012 13:38:12 CST Parent Server Generation: 9 Server uptime: 15 hours 35 minutes 28 seconds Total accesses: 3444470 - Total…
user4234
  • 303
  • 3
  • 16
3
votes
1 answer

Disabling CPU management

If I add the following processor.max_cstate=0 to the kernel command line for boot up, does that disable all CPU power management and throttling? I also…
3
votes
2 answers

Why does mpstat show different values when I use the interval setting?

Here's the output I get when I run mpstat: $mpstat Linux 3.2.0-30-generic (my-laptop-C650) 09/17/2012 _x86_64_ (2 CPU) 05:32:01 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle 05:32:01 PM all 9.16 0.08…
Abe
  • 563
  • 2
  • 5
  • 11
3
votes
1 answer

High CPU usage resulting in server crash

running out of ideas to explore. First off - let me warn you - I'm a programmer, not a systech :) Here is the situation. Dedicated server (LAMP) running a fair amount of sites. mySQL server is on a seperate box. Last couple weeks, performance has…
Ryan
  • 53
  • 1
  • 5
3
votes
1 answer

how to find out why our Windows 2003 webserver shows CPU use at 100%

I am responsible for coding our web and database applications and the smooth functioning of the web server, which is running IIS6 under Windows Server 2003. The machine's a legacy server, 2003 vintage. For some reason the performance tab in Task…
Tim
  • 203
  • 1
  • 4
  • 11
3
votes
3 answers

Running bash script with php under lower priority or limit CPU

I have a bash script which runs a set of php scripts. When it runs it takes an hour and pegs the CPU at 95-99%. This causes our lamp stack (mainly the apache process) problems and our website on the same server starts spitting out timeout or 500…
Dave
  • 157
  • 6
3
votes
3 answers

What kind of Windows-based "process accounting" software is available?

Linux has pacct and kernel-based processing. What equivalents are available for Windows? I am aware (and use/recommend) of Process Explorer, but that only tracks real-time stats, with non-portable graphs for a single process. I want to be able to…
3
votes
2 answers

CPU Usage while running command in command line

I am looking for a way to output CPU usage percentage via the command line. I ran across this: wmic cpu get loadpercentage which gives me the desired percentage output however I want to test the CPU usage while running a certain command. Anyone have…
hanleyhansen
  • 257
  • 2
  • 4
  • 11
3
votes
1 answer

PHP processes run one at a time, always taking 100% of one core

We have seven websites written in PHP running on a Windows 2008 server with IIS 7.5. They are all very slow right now. When I look in Task Manager, I see around 10 php-cgi.exe processes, and they are all taking 0% of the CPU, except one, which is…
Derek Kurth
  • 362
  • 4
  • 10
3
votes
1 answer

Amazon EC2: how to find out detailed CPU usage?

I am running several EC2 instances, and I want to know the exact work my CPU is doing. On "normal" machines I am doing this with munin and its CPU plugin which looks at the statistics provided by /proc/stat. On my EC2 machines however, I get…
j0nes
  • 955
  • 1
  • 12
  • 27