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
36
votes
7 answers

`Monitor cpu usage per thread in java?

I would like to ask whether there is some simple way to determine cpu usage per thread in java. Thanks
awk
  • 526
  • 1
  • 5
  • 8
35
votes
7 answers

jQuery animate() and browser performance

I've got some elements that I'm moving across the page very slowly. Essentially, I'm decreasing the left margin of two images over a span of 40 seconds or so. Visually, it's working beautifully. However, my processor jumps to about 50% usage during…
Jeremy Ricketts
  • 2,601
  • 4
  • 29
  • 28
34
votes
3 answers

What counts as CPU Intensive tasks (eg. sorting, searching etc?)

What do you count as a CPU intensive task. In terms of ... an algorithm/code for example (not so much a use case like video editing etc). Reason is it seems the main reason not to use NodeJS something I really like is mainly CPU intensive task. So…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
32
votes
5 answers

How to get CPU usage and RAM usage without exec?

How does VBulletin get the system information without the use of exec? Is there any other information I can get about the server without exec? I am interested in: bandwidth used system type CPU speed/usage/count RAM usage
Rami Dabain
  • 4,709
  • 12
  • 62
  • 106
31
votes
9 answers

How to get current CPU and RAM usage in C++?

is it possible, in C++, to get the current RAM and CPU usage? Is there a platform-indepentent function call?
tunnuz
  • 23,338
  • 31
  • 90
  • 128
31
votes
4 answers

What is the meaning of Incl CPU Time, Excl CPU Time, Incl Real CPU Time, Excl Real CPU Time in traceview?

1) Exclusive time is the time spent in the method 2) Inclusive time is the time spent in the method plus the time spent in any called functions 3) We refer to calling methods as "parents" and called methods as "children." Reference Link : Click…
VISHAL VIRADIA
  • 1,388
  • 1
  • 15
  • 34
30
votes
3 answers

Get Docker Container CPU Usage as Percentage

Docker provides an interactive stats command, docker stats [cid] which gives up to date information on the CPU usage, like so: CONTAINER CPU % MEM USAGE/LIMIT MEM % NET I/O 36e8a65d 0.03% 4.086 MiB/7.798 GiB …
Dan LaManna
  • 3,431
  • 4
  • 23
  • 35
30
votes
4 answers

Get current CPU, RAM and Disk drive usage in C#

How to get the CPU, RAM and Disk drive usage of the system in C# code?
Sauron
  • 16,668
  • 41
  • 122
  • 174
28
votes
2 answers

Docker stats with CPU percentage more than 100

I have a question about docker stats command if anyone can help me. I am new in Docker area and I want to monitor the cpu usage of a docker container. The physical machine has 8 cores (CPU0...CPU7). I already create a container and limit its cpu…
SMA
  • 415
  • 1
  • 5
  • 10
27
votes
3 answers

Limit total CPU usage in python multiprocessing

I am using multiprocessing.Pool.imap to run many independent jobs in parallel using Python 2.7 on Windows 7. With the default settings, my total CPU usage is pegged at 100%, as measured by Windows Task Manager. This makes it impossible to do any…
Dave Kielpinski
  • 1,152
  • 1
  • 9
  • 20
27
votes
5 answers

Simple TextView.setText causes 40% CPU Usage

Running my application causes ~40% CPU usage on my Phone: final String position = String.format("%02d:%02d:%02d", time.getHours(), time.getMinutes(), time.getSeconds()); getActivity().runOnUiThread(new Runnable() { @Override …
phlebas
  • 1,210
  • 2
  • 13
  • 24
26
votes
3 answers

Chrome Headless puppeteer too much CPU

I have a scraping algorithm in nodejs with puppeteer which scrapes 5 pages concurrently and when it finishes with one page it pulls the next url from a queue and open it in the same page. The CPU is always at 100%. How to make puppeteer use less…
Pjotr Raskolnikov
  • 1,558
  • 2
  • 15
  • 27
26
votes
4 answers

efilogin-helper running continuously at high cpu on MacBook Pro

There is a process launched by launchd called efilogin-helper running as root, which is continuously running at high CPU load (60% to 120%) Do you know what this process is and how I can get it under control? There is surprisingly little information…
T33C
  • 4,341
  • 2
  • 20
  • 42
26
votes
5 answers

Enable Live Graph in Memory Usage while Debugging in Visual Studio

Somehow I have lost the live graph from my Visual Studio Diagnostic Tool. Below is my current debugging screen showing that I can not see Memory and CPU usage live graph : Where as I am looking for this : I tried exploring in following places as…
26
votes
2 answers

Limiting a Docker Container to a single cpu core

I'm trying to build a system which runs pieces of code in consistent conditions, and one way I imagine this being possible is to run the various programs in docker containers with the same layout, reserving the same amount of memory, etc. However, I…
mavix
  • 2,488
  • 6
  • 30
  • 52