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
36 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 ...
  • 103
0 votes
1 answer
255 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 ...
  • 175
0 votes
1 answer
256 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?
  • 135
0 votes
2 answers
1k 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 IO tab and netowrk below the SWAP area, there is a disk IO summary , and then an individual IO ...
  • 3
0 votes
1 answer
33 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 ...
0 votes
0 answers
109 views

How to know the total memory consumed by an app (chrome) in linux

I am trying to find out the memory consumption of chrome browser in linux. The problem is that the sum of the resident memory (text+data+stack) reported by htop of all the chrome processes is not the ...
  • 153
1 vote
1 answer
125 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 ...
  • 153
0 votes
1 answer
67 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, ...
  • 153
0 votes
1 answer
155 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 ...
  • 451
0 votes
0 answers
495 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 ...
  • 101
-1 votes
1 answer
972 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@...
0 votes
1 answer
593 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%...
3 votes
1 answer
784 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 ...
0 votes
0 answers
141 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 ...
1 vote
1 answer
263 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 ...
  • 113
0 votes
0 answers
75 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): ...
  • 101
1 vote
0 answers
177 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, ...
  • 113
1 vote
0 answers
264 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? ...
4 votes
1 answer
3k 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
  • 43
5 votes
0 answers
2k 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 ...
6 votes
0 answers
4k 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) ...
4 votes
2 answers
2k 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 ...
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 ...
1 vote
1 answer
1k 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 ...
  • 131
6 votes
1 answer
3k 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 ...
2 votes
0 answers
78 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 ...
  • 753
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 ...
  • 37
2 votes
2 answers
438 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 ...
5 votes
3 answers
3k 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. ...
  • 8,586
0 votes
1 answer
509 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 ...
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....
  • 3
4 votes
0 answers
2k 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 ...
0 votes
0 answers
75 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 ...
11 votes
2 answers
8k 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://...
5 votes
0 answers
460 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 ...
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'...
  • 227
0 votes
2 answers
405 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, ...
  • 199
8 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 ...
17 votes
2 answers
10k 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?
2 votes
3 answers
492 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 ...
  • 125
34 votes
3 answers
18k 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.
6 votes
0 answers
742 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 ...
  • 7,769
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 ...
  • 276
0 votes
1 answer
864 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 ...
  • 1,354
0 votes
1 answer
152 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:
  • 8,155
17 votes
6 answers
11k views

How to collapse all trees in htop?

I would like to be able to collapse all the trees in the default view of htop. Is there a way to achieve that at once, instead of selecting every tree and hitting F6?
  • 358
1 vote
1 answer
1k views

Gnome-terminal color inversion

I have some custom colours set up inside gnome-terminal, basically light text on dark background. The problem is, some programs interact badly with the colors. For example, htop uses very light green/...
  • 338
59 votes
3 answers
17k views

Is there a way to copy text in htop?

Normally in putty you can just select text to copy it, but I can't seem to select text with my mouse in htop. Of course there's no right click menu to copy, ctrl+c doesn't work, and I didn't see any ...
  • 1,415
66 votes
5 answers
28k views

How to compress or hide the processors at top of htop on large machines?

I like to use htop to show me how the server is being used. Unfortunately with modern servers, the machine might have 48 or even 120 cores. This means that I can only see the first few lines of htop ...
  • 1,200
1 vote
1 answer
1k views

How to interpret this htop output?

CPU is pinning on one of our app server (Java) machines. When I run the htop command on the machine and switch to Tree View I see: |- java -Dcom.sun.management.jmxremote -Dfizz=buzz | |- java -Dcom....
  • 2,702