Questions tagged [cpu-usage]

CPU usage indicate how much of a workload is being handled by the CPU.

CPU-usage or CPU time is the amount of time for which a central processing unit (CPU) was used for processing instructions of a computer program.

CPU time accounting :http://public.dhe.ibm.com/software/dw/linux390/perf/CPU_time_accounting.pdf

2881 questions
1
vote
2 answers

SQL SERVER - Query optimization 'like' causing most cpu uses 100%

I have two tables in database Products and Filters. The schema: I have created a query that find all the records from the filters table, loop with each record and call a procedure that set the category id for Products table. Filter table data will…
Vikash Pathak
  • 3,444
  • 1
  • 18
  • 32
1
vote
0 answers

Import statement affects script performance

I was reviewing code and updating the import statements based on general guidelines, changing “from xxx import *” to “from xxx import m, n, p”. The difference in script execution time, however, was noticeable: From collections import…
1
vote
2 answers

Python 2.7 - Linux - Infinite loop, relinquish CPU to other threads / processes

is there way to relinquish the rest of thread / process assigned time to other threads/processes in Python 2.7? Please don't recommend syncing, mutexes, semaphores and whatever else. I am asking for standard mechanism which exists on Windows or…
Fis
  • 787
  • 2
  • 10
  • 24
1
vote
2 answers

Java limit CPU when run tomcat?

I using server AWS EC2, install server tomcat 8, java 1.7 I using Munin and VisualVM remote tomcat for test speed. But in Munin CPU is good and in VisualVM CPU 90%-100%. I think maybe java limit CPU for tomcat. How I can increase CPU for…
minamino
  • 115
  • 1
  • 13
1
vote
2 answers

Can I limit the CPU usage of a website for testing?

We have developed a website that has quite a lot of flash in it and it seems to be hanging on some machines using firefox, these machines are a lower spec than our development machines and we cannot recreate the problem locally. Ideally we want to…
Bex
  • 4,898
  • 11
  • 50
  • 87
1
vote
1 answer

devenv.exe and svchost.exe both hog an entire CPU and the hogging thread has the same function at the top of the stack trace

I'm using visual studio 2010 SP1Rel with no extensions and the devenv.exe process continuously uses an entire core, making using the IDE very difficult, if not impossible. I've noticed that svchost.exe -k netsvcs is also using an entire core. I've…
1
vote
0 answers

C# Moving panel with MouseMove event high CPU usage

So I have this custom panel that I am making act like a form (I'm experimenting) and whenever I move it around the screen with the mouse it results in 20%+ CPU usage. The snippet below is the cause because if I comment it out it works fine, but I…
73cn0109y
  • 75
  • 1
  • 10
1
vote
2 answers

Mongo Auto Balancing Not Working

I'm running into an issue where one of my shards is constantly at 100% CPU usage while I'm storing files into my Mongo DB (using Grid FS). I have shutdown writing to the DB and the usage does drop down to nearly 0%. However, the auto balancer is…
1
vote
2 answers

Service times directly proportional to number of threads

My system is i5-Dual core with hyper-threading. Windows show me 4 processors. When i run a single optimized cpu-bound task by a single thread at a time its service time always display arround 35ms. But when i handover 2 tasks to 2 threads…
1
vote
0 answers

PHP5-FPM goes to 100% cpu usage and doesn't go down

Please check the following image: Output of: htop -u www-data My current configuration of pool.d/www.conf is: pm = ondemand pm.max_children = 4 pm.process_idle_timeout = 10s; pm.max_requests = 50 It's a 4 core cpu with 8gb ram. Ram usage is…
rjvim
  • 170
  • 13
1
vote
4 answers

Repaint taking up too much CPU

I'm writing a simple drawing program that uses keyListeners. It works, but every time it needs to draw another circle, I have to use the repaint() method or it won't automatically repaint the screen after using one of the arrow keys. It would be…
Eames
  • 321
  • 2
  • 19
1
vote
1 answer

How can I stop my CSS animation causing high Firefox and Xorg CPU usage?

http://pepijndevos.nl/ uses a lot of CPU on Firefox, and surprisingly also Xorg. There is basically no JS going on, and certainly no window resizing or stuff like that. Tasks: 245 total, 2 running, 243 sleeping, 0 stopped, 0 zombie %Cpu(s): …
Pepijn
  • 4,145
  • 5
  • 36
  • 64
1
vote
0 answers

Determining a PHP script's execution time

Lately I have gotten myself into a predicament. My system started consuming too much CPU and it turns out that along with a few SQL queries (that got logged in MySQL slow query log), there is also a number of PHP scripts that take too long to…
McJohnson
  • 313
  • 1
  • 11
1
vote
1 answer

Apache 2.2 MPM usage for different sites

Can one apache instance run different MPM's for different sites? For example, I got a server with apache, and two sites: www.site1.com and www.site2.com. Can I possibly have mpm_prefork_module on site1 and mpm_worker_module for site2?
Alexander Capone
  • 528
  • 3
  • 16
1
vote
0 answers

"setViewControllers" method of UIPageViewController causing a CPU overload in iOS 7

I have this code snippet in a view controller that conforms to UIPageViewControllerDataSource protocol: - (void)viewDidLoad { [super viewDidLoad]; NSMutableArray *tempViewControllers = [[NSMutableArray alloc] init]; UIStoryboard…
AppsDev
  • 12,319
  • 23
  • 93
  • 186