Questions tagged [cpu-load]

37 questions
18
votes
5 answers

How can I simulate different types of load in an Android device?

I'm trying to test my app's behavior in various situations like let's say there's a lot of RAM and CPU being used or network being consumed by some other apps or battery being drained away by another. Now, what I've is let's say I want (100-X)% of…
VoodooChild92
  • 1,993
  • 3
  • 19
  • 24
8
votes
1 answer

node.js server with socket.io handling 50000 simultaneous clients

We are developing a Javascript control which should be constantly connected to a server for receiving animation updates. We are planning to host this stuff on an Amazon cloud. The scenario is like this: server connects to activemq queue waiting for…
v00d00
  • 3,215
  • 3
  • 32
  • 43
5
votes
1 answer

OperatingSystemMXBean.getSystemCpuLoad doesn't work when run as service

We have a section of code that needs to monitor the CPU load. We get the CPU load with the following line of code: ((com.sun.management.OperatingSystemMXBean) ManagementFactory .getOperatingSystemMXBean()).getSystemCpuLoad(); During Testing, this…
AAG
  • 123
  • 7
4
votes
3 answers

Why does cpu load not change more than a few hundredths?

I'm running this command grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}' Yet it only outputs something like 0.99xxxx% If I do an apt-get upgrade or any process, I would imagine it would go above 1%. Even running…
user1052448
  • 423
  • 2
  • 6
  • 19
3
votes
1 answer

Is there any way to calculate CPU load on current android versions?

My actual goal is to the calculate CPU load of the phone. But this seems not possible on Android 8+ devices. Because the access to /proc/stat is restricted on API 26. So I am trying to calculate my app's CPU load in my app. This can also work on my…
Mustafa Kuloğlu
  • 1,122
  • 1
  • 8
  • 16
3
votes
0 answers

Process [sync_supers] using 100% CPU

I've found out the process [sync_supers] running twice, using 100% of cpu each of those. It was triggered by the user share which is a user to access a share folder used by Samba users. The user share has access only to…
Lucas Aimaretto
  • 1,399
  • 1
  • 22
  • 34
3
votes
1 answer

The Windows desktop becomes paralysed during heavy network I/O / Windows kernel allocates only 1 out of many CPUs?

Problem: We implement a video recording system on a Windows Server 2012 system. In spite of low CPU and memory consumption, we face serious performance problems. Short program description: the application (VS2005/C++) creates many network sockets,…
3
votes
1 answer

Python's psutils -- will it reflect CPU Load similar to top/monit?

I'm writing a program that will perform some logging of my company's webserver load. One information I need to log is the server's CPU Load. I know that CPU Load -- in monit or top/htop -- reflects the total load across cores, normalized against 1…
pepoluan
  • 6,132
  • 4
  • 46
  • 76
2
votes
0 answers

Prometheus - CPU Load for a period of time

I'm trying to find the CPU load of my servers, on a 15m average for the last 60 days. And I would like to define a server, as under-utilized: If usage is below 10% during this period If usage is below 50% and variance is low I thought maybe…
2
votes
0 answers

How to include function names for dll project in performance profiler for visual studio (2019)

I am attempting to profile functions within a dll of my own creation that is called via the host project 'CPPConsoleTest'- effectively a test runner. Following available guides, I have included folders that contain pdp files, this has allowed for…
2
votes
1 answer

Cassandra high cpu load issues (3.11.1)

Need some help to solve my high cpu utilisation issues with cassandra. We have a 12 node Cassandra cluster with below spec. 8 cores 16GB HEAP/32GB RAM with G1GC All of a sudden I have started seeing some high cpu load (which is around 18-24 on 8…
sandeep
  • 387
  • 1
  • 4
  • 12
2
votes
0 answers

100% Kernel CPU kills connections to the server

My server runs Centos 6.9 (64gb Ram), and nginx, the problem is that every 10 minutes there are random 100% kernel cpu spikes in htop, generated by "events/10" and "ksoftirqd/10". I don't know how to find out which exact process is generating this…
2
votes
2 answers

Get CPU load in python on Raspberry Pi doesn't work

I have googled for code to get the CPU load on RPi3. I found this code: import os def getCPUuse(): return str(os.popen("top -n1 | awk '/Cpu\(s\):/ {print $2}'").readline().strip()) For me it only returns an empty string. Where is the problem…
monamona
  • 1,195
  • 2
  • 17
  • 43
2
votes
2 answers

How to determine CPU consumption in C++ per core

How can I get the CPU load per core (quadcore cpu with hyperthreading), in C++? I am looking for a result like in the task manager in %. I am trying to do it now like this: The problem is the code recognizes 9 cores (i have 8 :/) #define…
The Coder
  • 143
  • 8
1
vote
0 answers

gstreamer appsink, cpu load is high when drop = true

I'm using gstreamer's appsink and I find that its cpu load is very high when I set drop=true the following pipeline works: gst-launch-1.0 -v rtspsrc location="rtsp://somelink" latency=300 ! rtph265depay ! h265parse ! avdec_h265 ! videoconvert ! …
Felix F Xu
  • 125
  • 7
1
2 3