Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
19 views

How are we supposed to use conda to install packages for non super server accounts?

I am required to work in an environment where I have access to a server with GPU's but my accounts do not have superuser access, and it is a real pain to ask the administrator to install packages, so ...
0
votes
0answers
32 views

Determine the exact RAM used by a process

The following is a screenshot of the system's htop: htop screenshot I am trying to understand the difference between the Memory usage(86.1G/231G) and the RES field for the process(253G) indicated by ...
1
vote
0answers
184 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 ...
2
votes
0answers
53 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) ...
0
votes
1answer
439 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 ...
0
votes
0answers
60 views

linux remote VM slow - memory is mostly used - htop not adding up

I use a virtual machine at work hosted on centralized servers, and sometimes the machine comes up very sluggish when accessed remotely. I saw high memory usage and systematically closed all ...
1
vote
1answer
384 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
291 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 ...
3
votes
0answers
462 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 ...
1
vote
0answers
47 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
274 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
95 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 ...
1
vote
2answers
761 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
182 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
524 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....
2
votes
0answers
1k 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
67 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 ...
5
votes
1answer
3k 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://...
4
votes
0answers
207 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 ...
2
votes
1answer
870 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
130 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, ...
4
votes
3answers
632 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 ...
6
votes
2answers
4k views

What do 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
262 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 ...
10
votes
2answers
4k 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.
2
votes
0answers
486 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 ...
5
votes
1answer
691 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
468 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
98 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:
9
votes
3answers
4k 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
752 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/...
33
votes
2answers
7k 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 ...
22
votes
5answers
9k 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
691 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
998 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 ...
13
votes
2answers
3k 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 ...
14
votes
1answer
5k 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 ...
1
vote
2answers
676 views

htop status bars in motd

I'd like to put the htop status bars, that show the percentage of CPU usage and memory, in my MOTD, so that every time I log in I see an overview about the systems health status. Any idea how to ...
28
votes
1answer
15k views

What do the colors mean in htop?

For the CPU cores, I think that blue means nice, green normal CPU use and red I/O. But I'm not sure and I haven't found a definite answer. Then there are the colors for memory. What do green, blue ...
2
votes
1answer
6k views

About Load average in htop, how to decide if it's still doing ok?

I use 'htop' to monitor my web server. It's recently quite loaded and the Load average is showing something like this: Load average: 3.10 2.56 1.63 I searched the web about these numbers and I ...
2
votes
0answers
1k views

Convert htop output to HTML

I wish to view the output of htop as a web page (and possibly add interactivity later on) and I expected this to be readily available (e.g. ncurses capture-screen-and-convert-to-html), but I had no ...
0
votes
0answers
307 views

LINUX: How to make 'htop' sort? F6 works, but won't let me select anything

I'm using htop in Linux, and I'm trying to set it to sort by Time+ instead of CPU%. So I press "F6" to open the 'sort by' menu, but it won't let me select anything. The arrow keys don't work in the '...
9
votes
1answer
17k views

How to install htop on OS X using Homebrew?

I am trying install htop using brew: ➜ ~ brew install htop Error: You must `brew link autoconf' before htop-osx can be installed Then I am doing brew link autoconf Linking /usr/local/Cellar/...
1
vote
2answers
3k views

rm -rf extremely slow & slows down server

I did a rm -rf foldername in an attempt to delete a folder containing 10,000s of 25KB files. Question Why is it taking so long (Almost 30 minutes)? Why did the server became extremely slow, even ...
9
votes
1answer
10k views

How do I read htop

I'm having trouble understanding the information displayed by htop the popular replacement for the Linux top command. In the above screen shot, there are many java instances listed, but only the ...
4
votes
3answers
3k views

htop does not show all processes

I'm using Ubuntu 12.04 with LXDE desktop environment. Sometimes my computer runs really slowly and the LXDE its CPU graphic shows a permanent 100% CPU usage. However, when I'm opening htop in a ...
1
vote
1answer
308 views

How does cpu speed stepping effect the cpu usage percentages reported in (for example) htop?

How does cpu speed stepping effect the cpu usage percentages reported in (for example) htop? How about the normal top? So, if my cpu is stepped down to 800mhz with a full speed of 2ghz, does 5% used ...
78
votes
4answers
14k views

htop isn't returning CPU or memory usage!?

I think that top is great application to monitor a Linux system. I really like it, but top doesn't look so good on Mac. I know that Mac have a system monitor to do it, but I prefer using a terminal. ...
7
votes
2answers
4k views

How to make htop sort by PID

How can you make htop sort the list of processes by PID?
2
votes
1answer
2k views

Why do I see 100% CPU spikes when looking at htop?

Occasionally, when looking at htop, I'll see my CPU spiking to 100%. However, when I sort my running processes by CPU utilization, they don't sum to 100%. They don't even come close. What "hidden" ...