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
3
votes
0 answers
htop segmentation fault (core dumped) without sudo
I'm using Ubuntu 22.04.1 LTS
If I directly run htop, I'll get
[1] 2368661 segmentation fault (core dumped) htop
But with sudo, it works normally.
How to solve it? Thanks in advance.

Mactarvish
- 65
- 6
3
votes
1 answer
Docker has RAM allocated after killed a process
I'm seeing the RAM occupation of my process on a Docker container, but it seems to generate a leak.
I did the following steps:
Create docker without running anything and executing docker stats [CONTAINER_ID] with this right results:
CONTAINER ID …

Paolo Magnani
- 549
- 4
- 14
3
votes
1 answer
What am I setting when I limit the number of "threads"?
I have a somewhat large code that uses the libraries numpy, scipy, sklearn, matplotlib. I need to limit the CPU usage to stop it from consuming all the available processing power in my computational cluster. Following this answer I implemented the…

Gabriel
- 40,504
- 73
- 230
- 404
3
votes
1 answer
Htop says "530G" in "VIRT" for "vagrant ssh"
I use Vagrant on a MacOS with an ubuntu64 16.04. Running htop, I can see vagrant ssh process can use virtually 530G (in VIRT Column).
Is it the normal behavior of Vagrant? Should I panic? Is it "normal" to have virtually 530G on a mac with 120G of…

rap-2-h
- 30,204
- 37
- 167
- 263
3
votes
1 answer
Why is fresh ElasticSearch Install running so Many processes?
I just installed ElasticSearch and have not loaded in any data at all. htop shows ElasticSearch running a bunch of threads.
View htop output
Why is ElasticSearch running all these processes? What is it doing?
I know that you can configure htop to…

Alan Reed
- 470
- 4
- 11
3
votes
1 answer
htop ubuntu wily percentage numbers missing
I just upgraded to Ubuntu 15.10 (wily).
I notice that htop no longer shows the percentage numbers for CPU, memory and swap.
Is this a bug or "the new" way?

Adrian
- 3,321
- 2
- 29
- 46
3
votes
4 answers
using php to stream data of programs such as `htop`
using one of those codes
system("htop");
//or
exec('htop');
how to keep the data from htop being written into a file or something (time limit of the script is set to 0 don't worry)

Rami Dabain
- 4,709
- 12
- 62
- 106
2
votes
0 answers
htop shows that cpu usage of per core over 100%?
I'm using htop to monitor the CPU usage of my task. However, the CPU% value exceed 100% sometimes, which really confused me.
Some blogs explain that this is because I'm using a multi-core machine(this is true). If there are 8 (logic) cores, the max…

WilliamAllwaysWin
- 45
- 6
2
votes
1 answer
Why zombie process disappears from htop if i don't call waitpid()?
#include
#include
#include
int main()
{
int pid = fork();
if (pid == 0)
{
printf("I am Child\n");
exit(0);
}
printf("I am Parent\n");
…

Vadim Novoshinskiy
- 21
- 3
2
votes
0 answers
node.js – internally spawning userland process threads?
I have noticed that when spawning a very simple node process, htop will show multiple (what I learned today is called) userland process threads.
echo "setInterval(() => console.log(' '), 1000);" > test.js
node test.js
# while node is running,…

panepeter
- 3,224
- 1
- 29
- 41
2
votes
1 answer
Visualizing ruby threads with htop command
I am experimenting with multithreading in ruby. I ran this piece of code that runs 3 threads concurrently (ruby threads.rb in my terminal):
arr = []
arr.push(Thread.new do
1000000.times do |i|
puts "thread 1"
end
end)
arr.push(Thread.new do
…

David Geismar
- 3,152
- 6
- 41
- 80
2
votes
0 answers
How to understand top and htop results for tomcat with java threads
Using htop and atop commands show that Java eats much CPU. Here are htop results:
.
As I understood, the main Tomcat thread with PID=17649 takes 248% of all CPUs. And then other java threads created inside app take small amount of CPU like 4-3%
But…

Max Grigoriev
- 1,021
- 2
- 13
- 29
2
votes
1 answer
sails.js multiple child process, what are those? Ubuntu
By running sails with forever or calling it directly with node app.js --prod, according to htop i have a 4 child process that look like clones under it.
If i leave out the --prod argument, i get an equal quantity of grunt processes.
As you can see…

Andy W
- 55
- 5
2
votes
2 answers
htop shows more resident memory usage than what the machine has
htop and top show more resident memory consumption than physical memory present on a machine:
htop output:
top output:
free output:
How is this even possible?
Edit 1:
pmap output: https://gist.github.com/ixaxaar/1571308666360f65dc66

ixaxaar
- 6,411
- 3
- 24
- 33
2
votes
1 answer
discrepancy between htop and golang readmemstats
My program loads a lot of data at start up and then calls debug.FreeOSMemory() so that any extra space is given back immediately.
loadDataIntoMem()
debug.FreeOSMemory()
after loading into memory , htop shows me the following for the process
VIRT …

Abhishek Shivanna
- 73
- 7