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
1answer
24 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 ...
1
vote
0answers
14 views

htop red CPU usage doesn't listed on both top and htop tables

When htop shows a red CPU usage, it means a kernel process is in use. I tried listed it in both htop by toggling Shift + k and top, and the "red CPU usage" is not being shown in the table ...
0
votes
0answers
16 views

HTOP on Ubuntu 20.10: Why do the CPU% in a process tree not add up?

I am looking at the below screenshot. The top-level python with PID 93006 is taking 200% of the CPU, but if I look at the process tree under it, I see only one child process (PID 93020) that is using ...
0
votes
0answers
29 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 ...
-1
votes
1answer
277 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
0answers
8 views

Why htop char become ` rather then | [duplicate]

I have seen this several times, Server running debian and pve. This will happen in pve lxc centos, What's the reason? char become wrong
0
votes
1answer
61 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%...
2
votes
0answers
141 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
0answers
66 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 ...
0
votes
0answers
30 views

Lenovo Laptop with Kingston Ram doesn't seem to operate well

I've just finished adding a new 32GB ram card to my lenovo laptop, and I noticed that some processes were running slowly. htop ram allocation Now, suddenly, I am seeing these HUGE ram allocations for ...
0
votes
1answer
21 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 ...
0
votes
0answers
35 views

htop: Equivalent of `1` in `top`

I like that in top I can press '1' and show all cores. If I press '1' again it collapses back to a summary. htop starts by showing all cores, but that takes up an awful lot of lines. How to compress ...
0
votes
0answers
36 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): ...
1
vote
0answers
114 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, ...
1
vote
0answers
171 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? ...
2
votes
1answer
2k 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
5
votes
0answers
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 ...
3
votes
0answers
3k 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) ...
2
votes
2answers
1k 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
1answer
948 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
1answer
786 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 ...
5
votes
1answer
2k 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
0answers
70 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 ...
0
votes
1answer
925 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 ...
2
votes
2answers
320 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
3answers
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. ...
0
votes
1answer
411 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
1answer
842 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
votes
0answers
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
0answers
70 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 ...
10
votes
1answer
6k 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
0answers
388 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
1answer
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'...
0
votes
2answers
344 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, ...
8
votes
4answers
1k 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 ...
14
votes
2answers
8k 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
3answers
405 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 ...
24
votes
3answers
12k 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.
4
votes
0answers
623 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 ...
8
votes
1answer
1k 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 recipe tells me that I need to run ...
0
votes
1answer
789 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 ...
0
votes
1answer
129 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:
15
votes
4answers
8k 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?
1
vote
1answer
963 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/...
53
votes
3answers
13k 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 ...
49
votes
5answers
20k 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
vote
1answer
937 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....
0
votes
1answer
1k views

analyzing htop data in ubuntu

i am trying to find bottleneck in my server, specifically in my web application of why things are running super slow. Here is a screenshot of my htop: As far as I can tell mysql here is almost taking ...
17
votes
3answers
8k views

Sorted tree view in htop or alternative?

I am running a Debian flavor of Linux, and I use htop to keep track of memory usage, since it is more detailed than top. I can't seem to get it to sort by memory and display process trees at the same ...
19
votes
1answer
8k views

Run htop over ssh via single command

I want to run htop over ssh - but launch it automatically on a keyboard-less system with a shell script. My first idea was ssh user@test.home 'htop' but: Error opening terminal: unknown. Is there ...