Questions tagged [htop]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
48 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
104 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
104 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
  • 418
1 vote
0 answers
89 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
60 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
476 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
141 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
  • 293
0 votes
1 answer
89 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
69 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
193 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
  • 169
3 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,689
1 vote
1 answer
515 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
  • 283
3 votes
2 answers
534 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
763 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
119 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
463 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.5k
0 votes
0 answers
35 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
2 votes
1 answer
458 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
2 votes
1 answer
4k 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
  • 435
14 votes
2 answers
4k 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
  • 143
4 votes
1 answer
622 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
654 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
8k 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
  • 469
1 vote
1 answer
485 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
545 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
1k 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
  • 678
0 votes
2 answers
154 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,123
1 vote
1 answer
923 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
83 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
  • 917
2 votes
2 answers
1k 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
  • 609
0 votes
0 answers
168 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
637 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
111 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
805 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,391
1 vote
0 answers
50 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
326 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
485 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
783 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
386 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
466 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
2 votes
1 answer
2k views

Why htop shows no use of IO when iotop does?

I just started to pvmove --alloc anywhere on an luks2 encrypted PV. The commands takes a long time, and as expected, in iotop I can see the commands invoked for this operation are taking a fair bit of ...
ckarles's user avatar
  • 78
0 votes
1 answer
2k views

pidstat %CPU vs htop %CPU of a process

I'm using the pidstat to monitor the cpu usage of a process and it shows 100%. For the same process the htop or top shows 200% for the same process. The system has 16 cores, and the process i am ...
Madan's user avatar
  • 101
0 votes
1 answer
468 views

htop inaccurate on macOS

I'm trying to monitor the resource usage on an iMac 'remotely' (it's actually in Target Display Mode), so I installed htop via Homebrew. The problem is, htop doesn't seem to be accurate in ...
Steve M's user avatar
  • 103
0 votes
1 answer
2k views

monitoring a process each 1 sec and directing output to a file

I have a task in which I have to analyze a file transfer between a ftp client and a server. I know about htop command. If the file transfer takes 15 secs, then I want the htop command to run each ...
Vipul Tyagi's user avatar