Questions tagged [htop]

htop is an interactive process viewer for Linux. It is a text-mode application (for console or X terminals) and requires ncurses.

126 questions
2
votes
1 answer

htop reports 100% cpu steal time, top reports 0% after virsh restore

After a virsh save + restore from file, htop reports ~100% cpu steal time (st), while top reports ~100% idle time. May this be a bug in htop? Are there any fixes available, or is this simply some strange qemu/kvm behavior? Debian 8, Linux…
Michael Krupp
  • 2,042
  • 3
  • 19
  • 36
2
votes
1 answer

Change or hide process name in htop

It seems that htop shows all running processes to every user, and process names in htop contain all the file names that I include in the command line. Since I usually use very long file names that actually contains a lot of detailed information…
Feng
  • 21
  • 1
  • 3
2
votes
1 answer

Tracking memory leaks in node.js - v8 profiler vs htop

Recently we've discovered that our node.js app is most probably having some memory leak (memory consumption showed in htop is growing and growing). We've managed to isolate small amount of code into separate script which is still causing memory leak…
agarbund
  • 21
  • 4
1
vote
1 answer

python3 -- RAM usage (htop and tracemalloc give different values)

I have a code where I need to save RAM usage so I've been tracing RAM usage through tracemalloc.get_traced_memory. However, I have found that what tracemalloc.get_traced_memory gives is very different from the RAM usage I see through htop. In…
SWMin
  • 11
  • 1
1
vote
0 answers

htop - custom disk usage meter

I was wondering if its possible to add custom meter to htop without the need to compile own modified binary. I am lacking meter that would show output of df -h /. I know I can get that info via additional command or on my neofetch screen, but would…
jackar
  • 99
  • 1
  • 1
  • 10
1
vote
1 answer

Parse CPU per core usage snapshot to output/text file

I am working on a python script to read CPU usage per core and do some data analysis. 'htop' can show a dynamic usage on standard output but it's not readable by the program. Is there a way to log snapshot of 'htop' to a text file or standard…
keye
  • 135
  • 1
  • 14
1
vote
1 answer

How do you work out what's making up the total CPU% on Linux?

My fan is whirring on my Ubuntu laptop and htop is showing my CPU as maxed: However, looking at the processes ordered by CPU it doesn't seem like too much is going on other than gjs at 41.3%. I'm assuming there are just a ton of gjs processes that…
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
1
vote
0 answers

Ncurse implements window stretching and text does not wrap

How to use NCurse to achieve window stretching, text does not wrap. Like the interface of HTOP, the window is stretched, and the process is not forced to show a line break, but hidden
1
vote
0 answers

Understanding htop core percentage usage vs the task running

I have a dual processor system 10 cores 2 threads per core So this is 40 cores In the image below you can see that in the Task it says that only 3 are running however I can see usage on 26 of them I do not understand this
Joséph Flames
  • 204
  • 1
  • 12
1
vote
0 answers

Htop immediately closes on Apple Silicon (MacBook Air M1)

I installed the Homebrew (non rosetta), then installed the htop. Installation process finished successfully, but htop doesn't work. It just get killed on start. ~ brew config HOMEBREW_VERSION: 2.7.5-138-g2c83ea7 ORIGIN:…
yayature
  • 19
  • 1
1
vote
1 answer

How to install htop on a Heroku dyno?

Following the standard installation procedure of htop produces the following error: ~/htop-2.2.0 $ ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system…
1
vote
2 answers

1 slave node on AWS EMR not used

I'm running a pyspark code stored on the master node on an AWS EMR cluster (1 master and 2 slaves each with 8GB RAM and 4 cores) with the command - spark-submit --master yarn --deploy-mode cluster --jars…
ouila
  • 45
  • 1
  • 9
1
vote
0 answers

Find CPU usage of single process

Hi I'm trying to find the number of cores in use by a single proces using htop. htop -p processid I've tried the above commando and this shows the single process but gives the cpu usage of all processes. Is there a way to show a single process…
Vincent
  • 6,058
  • 15
  • 52
  • 94
1
vote
1 answer

Why does htop list so many mysql connections?

Too many mysqld connections are showing when i type htop command. I'm using mysql pool connection for my project using nodejs sequalize ORM. What is the reason it is showing this much connections?
Venkatesh
  • 160
  • 1
  • 2
  • 11
1
vote
0 answers

Why do top and htop show 0% CPU usage while doing heavy computation inside docker?

Question top and htop show 0% CPU usage while doing some heavy computation on a video stream inside a docker container. I know for sure that the CPU usage cannot be 0%, as I get correct output of my processed video stream and my own logs (not shown…
MuadDev
  • 392
  • 3
  • 12
1 2 3
8 9