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
293
votes
7 answers

Network usage top/htop on Linux

Is there a htop/top on Linux where I get to sort processes by network usage?
xxxxxxx
  • 5,037
  • 6
  • 28
  • 26
77
votes
1 answer

Htop showing multiple java processes with different pids

Htop on my linux machine shows many "processes" after launching one java program/JVM. I do understand that the JVM runs multiple threads (for the actual program, for garbage collection, etc). But how come htop lists them as multiple processes with…
b.buchhold
  • 3,837
  • 2
  • 24
  • 33
74
votes
1 answer

How do I interpret the memory usage information from htop

We have multiple servers in our lab and I tried to determine which one has more resources currently available. I tried to interpret the information htop displays but I'm not 100% understanding all those numbers. I have taken a screen shot for each…
olala
  • 4,146
  • 9
  • 34
  • 44
68
votes
2 answers

search for specific process name in htop

I would like to quickly find if my process is running by searching its name in htop. I could only find the PID or list all process one by one which not convenient.
Herve Meftah
  • 1,011
  • 1
  • 9
  • 17
52
votes
3 answers

Trick to loop/autorefresh docker ps view like top/htop in bash

Is it possible - and if yes, how - to have a self-refreshing view of current Docker containers printed by "docker ps" alike top/htop utilities?
Open Food Broker
  • 1,095
  • 1
  • 8
  • 31
43
votes
2 answers

Why does HTOP show exclamation mark next to uptime

Here is the screenshot What does the (!) means next to the uptime ?
Alucard
  • 1,814
  • 1
  • 21
  • 33
38
votes
7 answers

Python thread name doesn't show up on ps or htop

When I set the name for a Python thread, it doesn't show up on htop or ps. The ps output only shows python as the thread name. Is there any way to set a thread name so that it shows up on system reports like them? from threading import Thread import…
chamilad
  • 1,619
  • 3
  • 23
  • 40
34
votes
8 answers

htop output to human readable file

I've tried piping htop to a text file (e.g. htop > text.txt) but it gives me text garbled by formatting strings (see below). Is there a way to get nicer, human readable output? ^[7^[[?47h^[[1;30r^[[m^[[4l^[[?1h^[=^[[m^[[?1000h^[[m^[[m^[[H^[[2J^[[1B…
DilithiumMatrix
  • 17,795
  • 22
  • 77
  • 119
22
votes
1 answer

How to calculate system memory usage from /proc/meminfo (like htop)

Running the htop command gives you a picture of the memory usage in a format like this: 1.92G/5.83G Question: how should I interpret the values taken from /proc/meminfo in order to calculate programmatically the memory used? I am looking for…
tgogos
  • 23,218
  • 20
  • 96
  • 128
22
votes
3 answers

What does a C process status mean in htop?

I am using htop on osx and I can't seem to find out what a 'C' status in the 'S' status column means for a process status. What does a C process status mean in htop?
jrule
  • 313
  • 1
  • 3
  • 7
19
votes
2 answers

When using htop command, do red values in the time+ column mean there's something wrong?

Below is my server htop display. The nginx process uses CPU time more then 18 hours, and is shown in red color, but CPU and memory all look OK. Is the value within the normal range?
artwl
  • 3,502
  • 6
  • 38
  • 53
16
votes
3 answers

Find tmux session that a PID belongs to

I am using htop so see what processes are taking up a lot of memory so I can kill them. I have a lot of tmux sessions and lots of similar processes. How can I check which tmux pane a PID is in so I can be sure I am killing stuff I want to kill?
Andrew
  • 6,295
  • 11
  • 56
  • 95
15
votes
3 answers

htop with web interface

Is there any simple and lightweight monitoring tool like well-known htop, but with web interface? For Debian / Repberry Pi. All solutions I've seen was complicated and resource-intensive.
ofstudio
  • 747
  • 1
  • 6
  • 16
14
votes
1 answer

Are the pmap's RSS and htop's RES the same?

I run the following simple program #include #include int main() { malloc(1024*1024*32); getchar(); return 0; } htop gives this VIRT RES SHR 36684 312 240 pmap -x gives this Address Kbytes RSS …
MKo
  • 4,768
  • 8
  • 32
  • 35
12
votes
2 answers

How to display the memory usage in GB instead of percent by htop in ubuntu

Is there any way to get the RAM used by each process in GB rather than in % by htop in ubuntu?
Jitesh Malipeddi
  • 2,150
  • 3
  • 17
  • 37
1
2 3
8 9