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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
43 views

Unknown commands hogging all my cpu. " ./10 -c/tmp/ ..."

What command is ./10 -c/tmp/ ... ? I have tried killing it with no luck. Other than reboot what are my options? How could I find out what triggered it? What command was it, I need to identify what ...
c3cris's user avatar
  • 400
0 votes
2 answers
81 views

htop: Open with processes hidden

On large machines with a lot of CPU cores, the process list hides the CPUs. I want to open htop without the process list by using CLI arguments and/or env vars. I do not want to alter a global config ...
HappyFace's user avatar
  • 1,127
1 vote
1 answer
397 views

See details about process from /proc in htop?

Is there a way to get extra details about running process in htop ? Like there is process starting time (to identify if process recently crashed/restarted)? Default TIME+ htop column shown CPU clock ...
gavenkoa's user avatar
  • 1,936
2 votes
0 answers
179 views

htop show different cpu usage with top

I'm running fedora in virtualbox with 2 cores. a.out is just a simple single-threaded program. I don't know why htop gives 200% CPU.
Lewis Chan's user avatar
0 votes
2 answers
635 views

Does htop have a bug in the display of process status and memory consumption?

When running a few processes, I noticed that htop showed certain process as consuming CPU, but yet were marked S in the State column (the S column)...which meant that the processes were sleeping or ...
Nav's user avatar
  • 1,059
1 vote
1 answer
235 views

Linux sometimes recognizes twice the number of cores

Recently, my department bought two pretty good (HP Z840 Workstation) second hand computers, supposedly identical. I installed Linux (CentOS 9) in both of them, no problem. When I view the CPU info ...
Gonza 's user avatar
  • 11
0 votes
1 answer
138 views

See htop tree evolve in slow-motion

Using htop and its tree view (trigger by t or F5) one can see processes by parenthood, and layout the relations between them as a tree. Is there a way to see how the process tree evolves in slow ...
Michael's user avatar
  • 103
1 vote
1 answer
2k views

How can I group processes by application in htop?

In htop, how can I group processes by application? I've tried pressing H, but that doesn't seem to do the trick. Here is a good example of the problem I'm trying to solve: In the above, I want to see ...
Ben Davis's user avatar
  • 185
0 votes
1 answer
2k views

What htop process colors mean

In htop some processes are displayed in red and others in blue. What is the meaning of these colors?
valodzka's user avatar
  • 135
10 votes
2 answers
10k views

how to make htop to display network info and IO info like this?

recently I see this htop screenshot with network info displayed also the IO tab and main tab htop with I/O tab and network below the SWAP area, there is a disk IO summary , and then an individual IO ...
liuru's user avatar
  • 103
0 votes
1 answer
152 views

Process names 0, 1, 2

I see 0, 1, 2 and 3s in htop. I can't kill these (sig 9). They are sometimes consuming a bit of my cpu for a second. I wonder what they are... Killall just says process not found if I try to kill them ...
france1's user avatar
1 vote
1 answer
410 views

Data memory bigger than resident memory as shown in htop

I don't understand how the memory of processes is displayed in htop. In almost all the processes the M_DRS (DATA) column shows a bigger value than the M_RESIDENT column. According to the description ...
nadapez's user avatar
  • 213
0 votes
1 answer
429 views

Show total cpu for a set of processes in linux

I want to monitor the total cpu usage of all the process corresponding to some filter. For example all the process witch corresponds to some executable. On top or htop I can filter the process list, ...
nadapez's user avatar
  • 213
0 votes
1 answer
756 views

How can I identify "most thread hungry" applications/services on my system?

In htop, I see over 1500 threads. How do I know their distribution related to what is running on the machine? It is remarkable that only 2 are running; so maybe a lot of CPU time is wasted just to ...
J. Doe's user avatar
  • 461
0 votes
0 answers
1k views

Why does a finished python script still blocks memory?

I'm running a python3 script that is performing a lot of in-memory operations, thus using a lot of RAM. My machine has 256GB of RAM. I noticed, that even my script finishes (the program get's to the ...
Ziva's user avatar
  • 101
0 votes
1 answer
2k views

Problems with MySQL on Linux and 100% CPU load

I'm on Ubuntu 20.04. Why meanwhile I am deleting this package, the system is starting the relative service? I need MySQL on this server. How correctly I should execute its installation procedure? root@...
Savonarolla's user avatar
0 votes
1 answer
1k views

Linux high cpu usage - htop shows 90% to 100% cpu usage

I installed a fresh Manjaro Linux on my laptop and it works okay but I noticed high CPU usage when i ran the htop command. One of the cores were constantly busy near 100% and the 2nd one was around 90%...
cpu1001's user avatar
5 votes
1 answer
2k views

Why is htop not displaying colors only for my local machine?

TL;DR: htop 3.0.4 on macOS 11.0.1 doesn't display colors when running for my local machine, but if ssh'd into a remote system, running htop from there shows colors with no issues. I'm running into a ...
codedeeply's user avatar
0 votes
0 answers
238 views

F10 key won't work in native Windows SSH client

I'm using W10 2004 and I have an issue inside my remote SSH sessions using the open-ssh client natively available in Windows. My F10 key won't work inside some programs like mc or htop. In mc, I can ...
JusteThom's user avatar
1 vote
1 answer
823 views

Htop 'command' column too wide, how to easily see the end of it?

The 'Command' column is too long most of the time, and I only care about e.g. the last 100 characters, it almost always clearly shows me what the command is about. Unfortunately, it is not possible to ...
Chris's user avatar
  • 113
0 votes
0 answers
220 views

What is the real command to know the total real time CPU % status on Linux env and what is the ideal value

I understood that top and htop give a lot of info in real-time on the server status. But what really gives me the total CPU of the server? can I rely on the id column from the top command: %Cpu(s): ...
arielma's user avatar
  • 101
1 vote
0 answers
235 views

Why there are some black block in my htop display?

The color of graph used to look fine, but I don't how it become so ugly recently, with a black block inside. My computer is Mac OS and I'm using default terminal to connect my remote server. Besides, ...
DennisLi's user avatar
  • 113
1 vote
0 answers
430 views

How to Collapse the View of **ALL** instances of all applications

After executing the htop command, you can press F5 (or t) in order to see the tree view. But how do I collapse the tree for having a higher order view only instead of the long list of all processes? ...
Philippe Fanaro's user avatar
4 votes
2 answers
5k views

How to install "htop" without root previllege

I have searched online with no luck. Question is in title. So, is it possible? If it is possible, would you provide step-by-step procedure to install it? Thanks. I am on Ubuntu 16.0.4
donto's user avatar
  • 51
6 votes
0 answers
3k views

HTOP shows massive memory usage but proceslist shows otherwise

I'm running htop on my Ubuntu 16.04LTS server to monitor my CPU and RAM usage. I'm aware of the color indications used by htop as outlined below: So, when I look at my htop-overview, it shows me the ...
Thomas van Hesteren's user avatar
6 votes
0 answers
8k views

What does ? status in htop mean?

I see ? in the S column of htop output. But the manpage only has the following states. What does ? mean? Thanks. STATE (S) The state of the process: S for sleeping (idle) ...
user1424739's user avatar
5 votes
2 answers
3k views

htop memory usage does not add up with process list

I am using lxd to run multiple containers and having trouble reporting the memory usage: both htop and free shows high memory usage but the list of processes that uses memory is very short and doesn't ...
user60177's user avatar
1 vote
1 answer
1k views

Copy text from htop with long line

related to this question, I want to inspect a command listed in htop, but the command is very long. Therefore the suggested anwer to select text while holding shift does not work as it does not select ...
Samuel Pilz's user avatar
2 votes
1 answer
2k views

What am I seeing in htop on Linux?

Not sure if this is the right place for this question but I'll ask it anyway and see where it lands! I have a node process running on Centos and when I run htop, I see a whole bunch of processes that ...
An0nC0d3r's user avatar
  • 151
8 votes
3 answers
4k views

How to filter multiple users in htop?

TL;DR: Is there any way to filter two users processes at the same time in htop? I'm trying to get a list of processes of several users in htop. Code below seems not to work as second --user flag ...
B. Ceylan's user avatar
2 votes
0 answers
95 views

Why doesn't htop show LED mode meters with box-drawing characters?

I just set up htop on a server running Debian and noticed that meters in LED more are rendered with letters and symbols instead of the box-drawing chars it uses on my Mac. For comparison, htop on ...
emmalyx's user avatar
  • 762
0 votes
1 answer
1k views

Linux How to htop specific commands

Linux Centos 6,64 I am using following command for displaying htop in the command column htop -u command How do I do for it to show only a specific command which i choose from those running ...
Mike's user avatar
  • 37
2 votes
2 answers
639 views

htop : swapping when still having freememory

I am using htop and I don't understand this output (MAC OS 10.13): I understand there is 748 M of swap, while 4.7g of memory is free.. Why is there swap when there is free memory ? Do I miss ...
Romain Jouin's user avatar
5 votes
3 answers
4k views

Messed layout in "htop"

I'm currently using openSUSE Tumbleweed (with KDE Plasma 5, if that matters). I use htop to monitor system resources, and lately I get a messed layout, especially on the topmost area of the screen. ...
Sekhemty's user avatar
  • 9,256
0 votes
1 answer
591 views

How to configure htop to highlight other user names with gray

Help please figure out how to set htop to highlight other user names with gray like dbus user or chrony on the screenshot: As for me it works somehow randomly: on one terminals it only shows root ...
AndrewG10i's user avatar
0 votes
1 answer
1k views

How to run htop on remote pc?

I'd like to use SSH to connect to my PCs from my server and then run htop. My old Macs don't have htop though. I got an Ubuntu server as a VM and I'm using it to test this. VM-OS: Lubuntu server 14....
K.D.G's user avatar
  • 3
4 votes
0 answers
3k views

What does high CPU load in htop for processes with status S mean?

When monitoring my system with htop, the process status column for most processes under load is mostly S and switches to R sometimes. From my understanding of the docs status S means that a process is ...
Thorsten Schöning's user avatar
0 votes
0 answers
98 views

Is there a way to monitor email volume from terminal?

Is there a way that I can monitor email activity and volume of sending right from terminal? What I am thinking of is something like htop - but for email activity. My googling has left me empty ...
gabearnold's user avatar
14 votes
2 answers
11k views

htop - what is task, thread and running?

Htop gives me the following output : The values didn't change for the last minutes. So I wonder, what is the difference between "task", "thread" and "running" ? I had a look to this page : http://...
Romain Jouin's user avatar
5 votes
2 answers
593 views

How to stop htop controlling terminal's mouse?

When you running htop (with Gnome-Terminal + Ubuntu 14.04), and left-clicking a process on the terminal window, htop will move cursor into that process. I prefer to disable it, but I didn't find in ...
Gea-Suan Lin's user avatar
3 votes
1 answer
2k views

How is this machine at 100% cpu when there is nothing high on the htop list?

I have a machine that is being slow and htop is telling me that the processor is locked at 100% but all the processes under it seem to be running pretty low CPU usage... How is this possible? Shouldn'...
Joff's user avatar
  • 227
0 votes
2 answers
435 views

How do I use top (or equivalent) to determine if a process is behaving badly?

Are there indicators for when a process has "gone over to the dark side"? I feel that just using MEM% and CPU% are poor indicators for detecting things such as memory leaks (or other problems, ...
Usagi's user avatar
  • 199
11 votes
4 answers
2k views

Can't delete meters on htop with the delete key

When customizing htop my setup through the F2 menu, I accidentally put up some unwanted meters. I tried using backspace/delete according to the bottom menu, but it didn't affect the entry. I'm using ...
noɥʇʎԀʎzɐɹƆ's user avatar
25 votes
2 answers
12k views

What does the yellow color of CPU mean in htop? [duplicate]

if press h inside htop for quick help: CPU Blue : Low-priority threads Green : Normal priority threads Red : Kernel threads Turquoise : Virtualization threads but yellow?
IvanTrofimov's user avatar
2 votes
3 answers
573 views

Is there a way to copy text in htop on Mac OSX?

I wanted to copy all of the process information related to a specific program/software (Adobe in this case, other ones in the future) and so I tried holding Shift as mentioned here: Is there a way to ...
Montag's user avatar
  • 125
47 votes
3 answers
24k views

How to freeze the list of processes in htop?

I'd like to stop refreshing the list of processes. My problem is it refreshes itself too often. How can I do it? I use htop.
user1871996's user avatar
6 votes
0 answers
890 views

How to view child process sorted by aggregate memory usage?

I'm using top/htop to track memory usage on Linux. I'm seeing a lot of child process consuming a ton of memory, but I'm having trouble finding their parents. How can I see a process tree view sorted ...
Cerin's user avatar
  • 8,932
11 votes
1 answer
2k views

Why does htop on Mac OS X require root privileges to see data for all processes, but on Linux it runs without root

I use htop all the time when I'm working on Linux system. I've installed htop-osx through Homebrew on my Mac, but in order to see all data for all processes, the formula tells me that I need to run ...
JoeNyland's user avatar
  • 276
0 votes
1 answer
998 views

Should I trust htop or top when it comes to RES memory?

I am writing a program to test some memory usage metrics on our systems and I want to hit a target memory consumption. You execute my program via meminflate.exe -G 103.1 if you want to take up 103.1 ...
drjrm3's user avatar
  • 1,476
0 votes
1 answer
180 views

Why Menu Meter and htop report inconsistent occupied memory and total memory?

On my Macbook Pro running OS X 10.10.3, Menu Meter and htop seem to be reporting inconsistent memory results:
qazwsx's user avatar
  • 8,719