htop is an interactive process viewer for Linux. It is a text-mode application (for console or X terminals) and requires ncurses.
Questions tagged [htop]
126 questions
12
votes
1 answer
Building htop from source in Cygwin
I am trying to build htop from the source package (latest stable) under Cygwin on Windows 7 64bit. I am following the instructions given in README, but I'm hitting the following error when I run the make script:
Administrator@x230-WIN7…

Honig
- 125
- 1
- 7
9
votes
2 answers
Why does Java spawn so many processes?
I've written a Java server application that I run on a Debian 7 VServer.
The application itself works just fine, but I notices something very strange.
Issue
After calling java -Xmx200M -jar "CCU.jar I'd expect to see one Java process running my…

MinecraftShamrock
- 3,504
- 2
- 25
- 44
8
votes
2 answers
Missing interface elements in htop
After reinstalling the system (on client) had a problem with the interface htop.
Not show some of the elements: username, load average
client: win7pro, putty 9708
server: ubuntu server 12.04

vaal
- 153
- 3
- 8
6
votes
1 answer
golang CPU usage
I am aware of [1]. With a few lines of code, I just want to extract the current CPU usage from the top n processes with the most CPU usages. More or less the top 5 rows of top. Using github.com/shirou/gopsutil/process this is straight-forward:
//…

Patwie
- 4,360
- 1
- 21
- 41
6
votes
1 answer
Is it normal for Rails application to keep so many idle Puma and Postgres connections?
I have a Rails app with Puma server and DelayedJob.
I did some load testing of it - multiple requests at the same time etc. And when I looked at htop I found a number of processes which made me suspicious that puma is leaking /not killing…

Stpn
- 6,202
- 7
- 47
- 94
5
votes
1 answer
Way too much resources are used with Pytorch
I am using pytorch to train a DQN model. With ubuntu, if I use htop, I get
As you can see, all resources are used and I am a bit worried about that.
Here is my code.
Is there a way to use less resource? Do I have to add my requirement using…

jgauth
- 195
- 1
- 6
- 14
5
votes
1 answer
Python multiprocessing - why do I get so many thread per process?
I am using joblib (wrapper of multiprocessing package) to run a loop over some function over enumerable of arguments. When I do htop I see the number of processes equal to the number of cpu count (n_jobs=-1 does that for you automatically). However,…

Hanan Shteingart
- 8,480
- 10
- 53
- 66
5
votes
0 answers
Debugging red CPU usage in htop - unexplained 3-4x slowdown randomly
I have a large python program doing some heavy numerical crunching using pyCUDA and numpy.
It's usually very fast, but seemingly randomly every now and then it will slow down by 3-4x with no apparent cause.
Watching CPU usage with htop shows that…

ali_p
- 169
- 1
- 7
5
votes
1 answer
Htop process viewer - set column width
I try to enlarge the htop column's width. I've found a solution here, but it seems very specific and also too difficult. Is there any simpler way to make all the characters in a column visible?
user4725754
5
votes
1 answer
Why does "htop" show me dozens of PIDs in use by my app, but "ps" only shows me one?
I have a Clojure app that I am developing. I am testing it on the server, mostly by going into a "screen" session and typing:
java -jar lo_login_service-0.2-standalone.jar
and then I kill it by hitting Control-C. Then I make some changes. Then I…

cerhovice
- 676
- 1
- 10
- 24
5
votes
1 answer
How to fetch list of running processes on a system and sort them by various parameters
I use htop to view information about the processes currently running in my osx machine, also to sort them by CPU, memory usage, etc.
Is there any way to fetch the output of htop programatically in Ruby?. Also I would like to be able to use the API…

jimcgh
- 5,637
- 4
- 27
- 37
4
votes
1 answer
Segfault using htop on AWS Sagemaker pytorch-1.10-cpu-py38 app
I am trying to launch the htop command in the Pytorch 1.10 - Python 3.8 CPU optimized AWS Sagemaker container. This works fine in other images I have used till now, but in this one, the command fails with a segfault:
htop
htop:…

Orysza
- 574
- 1
- 5
- 10
4
votes
0 answers
CPU cores are underutilised while running n=-1 jobs
I have read that the Green bar represents the normal user process and the Red bar represents the time spent in kernel(kernel, iowait etc).
I'm running a jupyter-notebook that runs n=-1 jobs, and by definition all my cores should be used as normal…

BlimBlam
- 336
- 3
- 11
4
votes
0 answers
Storm physical processes excede number bolts and excutors
I have a problem in my Storm setup and it looks like there's some discrepancy between the number of executors I set for the topology, and the number of actual bolt processes I see running on one of the servers in that topology.
When setting the…

Guy Grin
- 1,968
- 2
- 17
- 38
4
votes
0 answers
htop shows >100% for a single-threaded application
I have haproxy 1.7.2 running on CentOS7 with two hexacore CPUs. haproxy runs with default setting of nbproc=1. Here is output of htop:
How can a single-threaded application utilize more than 100% of CPU? top or atop never show >100% CPU utilization…

rlib
- 7,444
- 3
- 32
- 40