Skip to main content

Questions tagged [htop]

The tag has no usage guidance.

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

How to analyse cause of memory usage not shown by htop

How can I best debug the following issue from here on? I have a python application running in a podman container which has plenty disk I/O due to a numpy memmap of two huge files, one input file ...
Semnodime's user avatar
  • 377
1 vote
0 answers
84 views

CPU cores at 100% despite very few processes using the CPU

On my system htop is constantly showing 100% load on four out of the eight logical cores on my system (system specs below). The issue is that it's a freshly installed Ubuntu Server 22.04 and there are ...
pete's user avatar
  • 11
0 votes
1 answer
62 views

How do i get the bash command below to stop echoing these bash alias not found errors?

I think these bash commands were created with the intention of increasing htops refresh interval, cant remember where i found them. However I have since figured out all that was needed to do to get it ...
bob king's user avatar
2 votes
1 answer
46 views

How to disable logical processors in OpenBSD?

It is well known that OpenBSD disables hyper-threading by default. However, htop shows 16 CPUs: 8 online and 8 offline, which takes extra space on the screen and is not very informative. Moreover, ...
nalzok's user avatar
  • 401
0 votes
1 answer
60 views

Discrepancy between values in htop and /proc/meminfo

From the author of htops answer https://stackoverflow.com/questions/41224738/how-to-calculate-system-memory-usage-from-proc-meminfo-like-htop/41251290#41251290 I got to know that the total memory in ...
ArunJose's user avatar
  • 103
0 votes
0 answers
153 views

How to identify which process is causing a high memory consumption?

I am running a virtualized Arch Linux machine. From time to time, it shows a high memory consumption and I do not know the reason because basically, the machine is sitting idle. # ps aux --sort=-%mem ...
Stacker12345's user avatar
1 vote
0 answers
253 views

Can I reset htop settings to defaults *within htop*

I change htop settings by accident from time to time, and sometimes I don't know what I've changed. It's really easy when just about every key changes a setting. Is there any way to reset the ...
trr's user avatar
  • 419
1 vote
0 answers
93 views

htop always show one cpu usage full [closed]

I have a server with two cpus (24 core * 2), recently, I noted that htop always report one cpu is fully usage But I cant find any threads with highly cpu usage by htop, top or ps -ef I have tried: ...
zhang's user avatar
  • 133
0 votes
0 answers
75 views

Why are CONKY memory RAM use stats higher than HTOP?

I have two different setups, one on virtual machine, and one standard, both on Linux, one on MINT and the other on MX. But on both, the CONKY stats for idle system RAM usage are around 200MB higher ...
daijo's user avatar
  • 21
0 votes
0 answers
631 views

htop shows lower memory consumption than free -h or top

I have a laptop with Artix Linux installed. When I check my RAM usage using htop, it shows significantly lower memory usage than free -h. Here's an example: htop: Mem[||||||||||||| 1.45G/7.60G]...
visilii's user avatar
0 votes
1 answer
217 views

Show I/O rates of all processes in htop?

htop 3.2.2 running as a regular user only shows I/O rates (IO_RATE/IO_READ_RATE/IO_WRITE_RATE) for some processes and "N/A" for others. Running as root shows I/O for all processes. How can I ...
genpfault's user avatar
  • 297
0 votes
1 answer
149 views

Multiple green lines in Htop: what do they mean?

htop gives unlimited multiple green lines under white line on linux. What do multiple green lines mean? And how can I prevent it? It seems that each takes a certain amount of memory
Antonio SEO's user avatar
1 vote
0 answers
85 views

DELL R730XD 256GB memory but just showed 251GB on linux with command `free -h` and `htop` , why?

A DELL R730XD server with 32GiB * 8, totaling 256GB of memory, is correctly recognized as 256GB in the BIOS. When checking the memory information using "dmidecode -t memory" in Linux, the ...
SomeNetDrugs' SuperStunRod's user avatar
0 votes
1 answer
266 views

htop - more space for CPUs when many CPUs

I like htop a lot, with fewer CPUs there is a bar next to each CPU showing how much it is utilised, however at 127 CPUs the usage bar is gone... I would like to know how to spread the CPUs over the ...
guesty's user avatar
  • 179
4 votes
1 answer
1k views

How to switch htop tab?

I recently see that there is new "I/O" (blue one) on htop, how to switch to that tab?
Kokizzu's user avatar
  • 9,941
1 vote
1 answer
583 views

How to interpret the colors in htop's memory bar? [duplicate]

I have the following htop output: What are the green, blue, and yellow bars respectively in this memory output?
Foobar's user avatar
  • 273
3 votes
2 answers
537 views

Why does `htop` display `$'\t'` as `?` in `sort` command?

I was running a pipe command with one section being the following: sort -t $'\t' -T . -k1,1g When I was monitoring htop I saw this instead: What is the reason behind this? Does this mean my command ...
paropunam's user avatar
  • 257
0 votes
0 answers
980 views

htop shows more kthr than Tasks

If htop shows more "kthr" than Tasks for me, how to interpret that? Shouldn't Tasks include all kernel threads, meaning it should always be Tasks >= kthr? Ubuntu 18.04.5, htop 2.1.0
Konstantin's user avatar
0 votes
1 answer
130 views

How to view quickly spawned/killed processes on a Fedora Linux machine?

On Windows, there is a program available for download which is part of what's called the sysinternals suite of tools. This program is called Process Explorer 64 aka ProcExp64. The program is useful ...
the_endian's user avatar
0 votes
2 answers
610 views

Find out which process is using CPU 0

I've applied CPUAffinity to certain systemd services. I've checked Cpus_allowed_list from /proc/PID/status, and it works fine. Now I want to find out which process is using CPU 0 or CPU 1, how can I ...
daisy's user avatar
  • 54.8k
0 votes
0 answers
39 views

"java -Xshare:auto -Des.netsworkaddress.cache.ttl=60..." What is it? Can I unistall it in some way?

I am reviewing a web service with Ubuntu 18.04.6 that is reported to load the sites mounted in it so slow. Reviewing the process running with htop, I detected that much of the memory is used by ...
Eliacim DAVILA - CENSERE's user avatar
3 votes
1 answer
532 views

How can I use htop or top to monitor CPUs' usage and output the infomation to a file?

I want to monitor the CPUs' usage when a program is running. I came out with the idea, that htop has the CPU usage information on the top. I wonder if I can somehow run htop, make it refresh every 0.1 ...
Erwin Zangwill's user avatar
3 votes
1 answer
5k views

How to let htop display as much as possible cores in one row

My workstation have 256 logic cores, and it seems htop can only display 4 cores usage in one row. So there are 64 rows to display cpu usage, thus I can't see any process information in htop. And I do ...
fajin yu's user avatar
  • 455
15 votes
2 answers
5k views

Why Google Chrome is reserving Terabytes scale virtual memory?

My system was running slow recently and I checked htop to identify resource consumption. RES Column is 213M which is quite normal for chrome. I was surprised after looking at VIRT column, Google ...
Milan's user avatar
  • 153
4 votes
1 answer
735 views

ctrl+z doesn't send htop to the background

I'm using zsh on macOS 12.4, apple M1. When I run htop normally using the command htop and use ctrl+z it behaves as expected and sends the process to the background. I can evoke it again using the fg ...
Shriram's user avatar
  • 216
0 votes
1 answer
811 views

Why does htop show half of the memory that the same machine on windows shows?

was out exploring in the binary jungle and found that my htop on Ubuntu WSL2 showed half the memory that windows shows. So, I'm running a 32GB machine, but htop only admits it having 16GB. Anyone know ...
Dreyfus's user avatar
7 votes
1 answer
9k views

What is this color bar for in htop page

I have a 48-CPU UBUNTU and it has loaded with lots of processes. Here is the htop page, At core section, the green bar means the usage from normal user, the red one represents the kernel usage, but ...
user3595231's user avatar
2 votes
0 answers
1k views

Why htop shows that total % CPU usage of processes is more than 400% on a 4 core/4 thread system?

I'm running some intensive tasks on my Linux (Manjaro) server and the CPU is at 100% of all its cores, but I saw that the percentages of CPU use per process sum to a much higher number than 400% on my ...
oskark's user avatar
  • 21
1 vote
0 answers
1k views

How can I hide all the idle processes in htop?

top hides all the idle processes with the -i flag. From man of the top: PERFORMANCE/ACCURACY TRADEOFF Calculating detailed memory statistics is fundamentally resource-intensive. To reduce the ...
alper's user avatar
  • 467
1 vote
1 answer
552 views

Minimize htop thread window?

I'm on a system with 48 threads and the view for usage is taking up 4/5 of the vertical screen space. Is there a way to toggle the CPU usage window to just view the active PIDs?
BitShift's user avatar
  • 131
1 vote
1 answer
616 views

Are these threads in htop using any resources?

My node application spawns ffmpeg processes. In htop, there are a bunch of ffmpeg processes I would have expected to have ended but they are still shown in htop. The threads in green are the process ...
Isiah L's user avatar
  • 113
1 vote
1 answer
2k views

top shows different pid for threads of same process. How to fix it?

when i do a ps -efT (where -T = Show threads, possibly with SPID column.), i see all the threads have the same PID, which is as expected. myroot 24958 24958 7942 0 20:20 pts/12 00:00:00 java -...
samshers's user avatar
  • 688
0 votes
2 answers
163 views

List Running Commands of All Windows

You can list the process ID of each widow with this command: wmctrl -lp Does there exist a command that shows the running command of each window (kind of like htop has a column for "Command"...
Lonnie Best's user avatar
  • 5,185
1 vote
1 answer
1k views

Filter processes by state in htop

Is there a way to filter processes in htop by their state — e.g., only show running processes (state R)?
jhansen's user avatar
  • 111
0 votes
1 answer
87 views

What is the `/` command displayed by htop?

I’m running FreeBSD 12.1-RELEASE on my home server. From time to time, the server’s HDDs thrash for hours on end, even though the server itself should be idle. (I have no cron jobs scheduled, and I ...
Dan Li's user avatar
  • 213
-1 votes
1 answer
1k views

Ubuntu: server is doing nothing, but memory is full

My server is actually on this state: I am executing htop as root, so I'd see everything. Sorting by MEM%, I see al processes under 1%. And this even in tree view). But what does it mean when memory ...
realtebo's user avatar
  • 957
4 votes
2 answers
2k views

how to make the htop wrap command line

Now I am using htop to show the process of my server, but I face a problem that when the command is very long, I just see part of the command and I did not know the full information of the process, is ...
Dolphin's user avatar
  • 639
0 votes
0 answers
188 views

htop command displays 996GB instead of 1024GB for RAM

I have a little issue that I can't understand. I have 8x128GB sticks of RAM, which makes 1024GB of RAM. But the command htop displays 996G and not 1024G as expected. You can see the following ...
youpilat13's user avatar
2 votes
1 answer
741 views

Unclear htop output when measuring IO usage of a dummy process

I write a simple test.sh script which only does this: while true; do cp ./target-file ./target-file.tmp; done wherein target-file is created using dd if=/dev/urandom of=target-file bs=1M count=100 and ...
Gaurang Tandon's user avatar
0 votes
0 answers
115 views

htop - why duplicate line when I run program?

I used htop to check the system monitor. I run the program app.py but I saw 2 line display app.py run. Is my app.py duplicate run?
Toan Nguyen Phuoc's user avatar
2 votes
0 answers
871 views

htop not showing threads of processes on Mac

I am running a java program from inside IntelliJ IDEA (an IDE) on a Mac. The program spawns 2 threads. I have installed htop and I am trying to see the process along with the spawned threads (they are ...
Jim's user avatar
  • 1,421
1 vote
0 answers
51 views

What does state "I" mean in htop? [duplicate]

I have recently observed an undocumented state "I" displayed in htop output. The default help message doesn't disclose any information about this hidden state. Given all processes that ...
TJM's user avatar
  • 554
0 votes
1 answer
43 views

Run program without permission

I'm using Debian 10, and today I suddenly realize my CPU up to 100 percent and I use htop to saw which process take action, and I saw my system try to unrar a file in my download directory but I don't ...
SiaVash Moghaddas's user avatar
7 votes
1 answer
3k views

htop CPU% at ~100% but bar graph shows every core much lower

I'm using Debian 9 to host a game server. Specifically, I'm hosting about 10 instances of the game Don't Starve Together. The other day I noticed one of those instances (which was getting a lot of ...
Mr. Smith's user avatar
  • 173
0 votes
1 answer
365 views

Can htop show more than 4 characters of CPU% data?

I'm trying to measure the CPU% consumed by my app on a multi-core machine, meaning htop CPU% reports can go over 100%. I'm trying to get a simple read on CPU usage difference when I run my app in one ...
CCJ's user avatar
  • 103
1 vote
1 answer
546 views

How to use top or htop to gather filtered time series

My goal is to track the resource usage of a certain command in a easily parse-able time-series. Here's an example where I'm tracking all the node commands for 3 batches: top -b -n3 | grep node ...
icicleking's user avatar
3 votes
0 answers
860 views

hidden(?) process is taking 20GB of RAM Ubuntu

I have a PC with 64 GB of RAM in my work. I am noticing that there is something that is taking a lot of my memory, sometimes 20 GB or even more than 40 GB. I could not find which process is ...
Cayo Emilio's user avatar
0 votes
1 answer
1k views

Why process is using more than 100% of CPU

I need to know why those processes are using so many CPUs. Are there any commands or tools to check? PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ...
Ash Adams's user avatar
4 votes
2 answers
413 views

What are these threads named disk$0, disk$1, etc.?

I am using Ubuntu 20.04 LTS. The kernel version is 5.4.0-42. Here is an example program: // mre.c // Compile with: cc -o mre mre.c -lSDL2 #include <stdio.h> #include <SDL2/SDL.h> int main(...
JudeMH's user avatar
  • 143
2 votes
2 answers
524 views

Cumulative resource usage

I'm managing a few compute servers w/ roughly 20 users each. I'm using htop to view current resource usage, however it would be very helpful to have a log of a specific user's cumulative memory and ...
Throckmorton's user avatar