Questions tagged [htop]

155 questions
258
votes
3 answers

Why does `htop` show more process than `ps`

In ps xf 26395 pts/78 Ss 0:00 \_ bash 27016 pts/78 Sl+ 0:04 | \_ unicorn_rails master -c config/unicorn.rb 27042 pts/78 Sl+ 0:00 | \_ unicorn_rails worker[0] -c config/unicorn.rb …
Cheng
  • 6,531
  • 11
  • 40
  • 42
123
votes
3 answers

What does the (!) mean after uptime on htop

I was analyzing some web heads looking at htop and noticed the following Uptime: 301 days(!), 23:47:39 What does the (!) mean?
brentwpeterson
  • 3,583
  • 5
  • 18
  • 20
96
votes
4 answers

How do I install htop in mac OS X?

How do I install htop for macOS (OS X)? (The easiest and laziest path)
Ruvenss
  • 1,061
  • 1
  • 7
  • 8
74
votes
7 answers

How can I set customise settings for htop?

Occasionally, I need to check resources on several machines throughout our data centres for consolidation recommendations. I prefer htop primarily because of the interactive feel and the display. Is there a way to customise some settings to my setup…
MrDuk
  • 1,527
  • 2
  • 13
  • 27
50
votes
3 answers

top / htop; group process by command

I'd like to know how much resource a specific command is using. top and htop displays information on per process basis but I'd like the information to be shown on per command basis. E.g. I'd like to know how much RAM chrome is using.
brillout
  • 595
  • 1
  • 4
  • 6
39
votes
3 answers

How to configure htop to display the complete command line?

It there a way to display the complete command line in htop (e.g. in multiple lines or with a moving banner). With the default setting where only one line is displayed it isn't possible to distungish all processes, e.g. different java programs…
Kalle Richter
  • 2,100
  • 4
  • 20
  • 37
30
votes
1 answer

Meaning of colours in htop

Given the option: [ ] Detailed CPU time (System/IO-Wait/Hard-IRQ/Soft-IRQ/Steal/Guest) In htop (Version 1.0.1) what are the meanings of the colours? In the following image, I'm seeing rather a lot of what I expect is IO-Wait, but where does one…
Lee Hambley
  • 405
  • 1
  • 4
  • 7
28
votes
6 answers

Alert when running process finishes

There are a few questions and answers on here with regard to being alerted when a process completes/exits(1, 2) – but these all assume that the user has issued said process themselves, and thus can script it with an alert built into the governing…
dongle
  • 495
  • 1
  • 6
  • 7
22
votes
4 answers

Run Linux process at very very low priority?

I have a regular process that's not so important but will consume very much CPU power. I have another process which is really important, but it spends most of the time idle, but when it gets a job it really needs high computing power. I tried…
uray
  • 3,830
  • 11
  • 36
  • 42
19
votes
3 answers

How to change the layout of the CPU meters in the htop?

Why does the same version of htop have so different layout of the CPU meters? How to switch between the layouts? Layout 1 htop --version htop 2.0.2 - (C) 2004-2018 Hisham Muhammad Released under the GNU GPL. Layout 2 htop --version htop 2.0.2 -…
Adam Ryczkowski
  • 5,493
  • 7
  • 39
  • 60
17
votes
5 answers

Is it possible to freeze task order in htop?

In htop I would like to order processes by CPU utilization but the top processes bounce back and forth so it is difficult to view the details of each process. I would like to be able to sort in whatever preferred order then lock that order while…
jterm
  • 271
  • 2
  • 4
17
votes
2 answers

What does it mean exactly when a processes "Time" has stopped in top?

I'll be looking into why we're getting critical swap alerts, and I'll find something like: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND 14683 user1 30 10 16.0g 772m 744 S 0.3 0.3 277:24.87 6.5g MATLAB 14576 user1…
CptSupermrkt
  • 1,492
  • 5
  • 16
  • 26
16
votes
5 answers

Killing a tree of processes in top/htop

htop allows me to nicely see trees of processes within the shell. I can kill processes by pressing F9 (KILL) and then selecting which signal (e.g. 15 SIGTERM) I want to send to a job to kill. However, this only allows me to kill one process at a…
Amelio Vazquez-Reina
  • 40,169
  • 77
  • 197
  • 294
16
votes
4 answers

htop / top with specifying process name filter on the command line - at program startup?

I'm on Ubuntu 18.04. I'm already aware that I can start htop, and then hit F4 for filter, then type or paste a process name search query (say, gphoto2 for looking for gvfs-gphoto2-volume-monitor.service), and then htop filters the shown processes:…
sdaau
  • 6,668
  • 12
  • 57
  • 69
16
votes
2 answers

how to show only processes *not* matching a filter?

I'm using htop to interactively monitor my processes. However, sometimes a few processes get "in the way" and I would like to filter them out. Unfortunately, it seems that htop's built in filter (e.g. F4) only allows me to define a positive filter…
umläute
  • 6,300
  • 1
  • 24
  • 48
1
2 3
10 11