cpu-usage Questions

2

Solved

Is it safe to use lseek(fd,0) and then read(fd,buf) for /proc/stat file instead of reopening it to get updated contents of this file next time? And what does the mmap() call after opening this fil...
Borst asked 24/1, 2011 at 23:36

13

Solved

Of late, I'm becoming more health oriented when constructing my program, I have observed that most of programs take 2 or 3 minutes to execute and when I check on the task scheduler, I see that they...
Upcountry asked 12/6, 2009 at 22:7

6

We're using Wildfly 11 with Java 8 on Amazon Linux. We recently installed jstack to troubleshoot a high CPU utilization issue as we're trying to figure out what code is causing the CPU to spin. Fir...
Arriaga asked 11/9, 2018 at 14:26

2

Solved

I am currently using a Macbook Pro with i7, which has 8 cores. However, I am not able set the CPU cores to more than 1. When I run docker run --cpus=2 "my-image" I get the following error: dock...
Wiliness asked 19/6, 2017 at 22:53

1

I'm using isolcpus to assign a subset of the total CPU cores only for kernel tasks. This means that I can use the reminder for other tasks. I noticed when I run the tests/benchmarking tool from go,...
Waldo asked 25/1, 2022 at 7:58

11

I want to get the overall total CPU usage for an application in C#. I've found many ways to dig into the properties of processes, but I only want the CPU usage of the processes, and the total CPU l...
Deathtrap asked 10/11, 2008 at 15:1

13

Solved

I want to programmatically [in C] calculate CPU usage % for a given process ID in Linux. How can we get the realtime CPU usage % for a given process? To make it further clear: I should be able ...
Autohypnosis asked 14/9, 2009 at 8:58

1

Solved

Let's take this processor as an example: a CPU with 2 cores and 4 threads (2 threads per core). From what I've read, such a CPU has 2 physical cores but can process 4 threads simultaneously through...
Phip asked 20/4, 2022 at 18:16

22

Solved

I want to get the CPU and memory usage of a single process on Linux - I know the PID. Hopefully, I can get it every second and write it to a CSV using the 'watch' command. What command can I use to...
Skurnik asked 3/8, 2009 at 10:13

4

Solved

I'm monitoring docker containers via Prometheus.io. My problem is that I'm just getting cpu_user_seconds_total or cpu_system_seconds_total. How to convert this ever-increasing value to a CPU percen...
Ombudsman asked 21/1, 2016 at 12:25

1

Usually , what are the checks/actions we need to do when we receive an alert from MongoDB about CPU high usage like below? **System: CPU (User) % has gone above 95 CPU usage is maxing out available...
Nicolette asked 10/2, 2022 at 5:33

8

Solved

I use Python 2.5.4. My computer: CPU AMD Phenom X3 720BE, Mainboard 780G, 4GB RAM, Windows 7 32 bit. I use Python threading but can not make every python.exe process consume 100% CPU. Why are the...
Amelioration asked 16/11, 2009 at 16:33

6

Solved

It's a question which has been asked many times, however there is no well supported answer I could find. Many people suggest the use of top command, but if you run top once (because you have a scr...
Enriqueenriqueta asked 29/4, 2014 at 14:40

6

Solved

I'm running Sublime Text 3 on Windows 10, with all my installed packages disabled. On idle, it is taking up ~31% of my CPU with one file opened. This seems like a ridiculous amount for a text edito...
Pernell asked 6/6, 2018 at 13:58

5

Solved

Google's Machine types page states that: For the n1 series of machine types, a virtual CPU is implemented as a single hardware hyper-thread on a 2.6 GHz Intel Xeon E5 (Sandy Bridge), 2.5 GHz I...

5

Solved

I need to collect data on firefox CPU usage during web-development coding session and I'm wondering if it is possible to monitor CPU usage of particular firefox plugin. Right now i'm using windows...
Briar asked 20/3, 2009 at 8:3

5

Solved

I am developing an Android application that shows the CPU load per core and memory consumption. For CPU load I am reading /proc/stat and for memory -> /proc/meminfo. However I see that the number o...
Certify asked 14/3, 2014 at 12:45

3

Solved

How can I get the CPU and Memory usage of a particular process using the .NET PerformanceCounter class? And also what is the difference between Processor\% Processor Time and Process\% Processor ...
Rm asked 13/1, 2011 at 12:24

2

I'm working on a asp.Net MVC 4 application that's on top of a Domain Model Architecture. Everything is fine a part that since a couple of days (upgraded many common packages) when I start the debu...

3

My python process at certain point in automated scripts starts chewing CPU on Linux based System (Ubuntu). I’m trying to debug this issue in GDB. I'm fairly new to GDB. Are there any GDB commands t...
Rickety asked 23/5, 2014 at 21:21

2

I'm working to reduce the CPU load on an RN app. I've built the app to a device, in release, and trimmed the console logs from the project. Even after doing this, the app is still around 33% CPU us...
Bikales asked 14/11, 2018 at 19:11

1

Solved

We have a webapp that uses on average 20% CPU when idle, with no network traffic or any kind of requests. It is running on Java 11, Tomcat 9, Spring Framework 5.3, Hibernate 5.4. However the issues...
Morelli asked 17/8, 2021 at 6:39

5

Solved

I have a PowerShell script that checks the CPU level of the server it is running on, and then if it is above a certain threshold it will run a SQL stored procedure and e-mail. The script runs corr...
Tacita asked 13/3, 2017 at 11:52

5

Solved

I have been developing with React Native for some years now but the following behaviour only started recently. After running any React Native app on the iOS simulator (either directly from Xcode or...
Force asked 27/3, 2020 at 11:20

4

Solved

In a bash script I need to wait until CPU usage gets below a threshold. In other words, I'd need a command wait_until_cpu_low which I would use like this: # Trigger some background CPU-heavy comm...
Twombly asked 31/8, 2015 at 12:53

© 2022 - 2025 — McMap. All rights reserved.