Questions tagged [htop]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
69 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 ...
user avatar
  • 3
3 votes
0 answers
47 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 ...
user avatar
  • 83
0 votes
1 answer
31 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 ...
user avatar
0 votes
1 answer
70 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 ...
user avatar
0 votes
0 answers
114 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 ...
user avatar
  • 1
1 vote
0 answers
133 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 ...
user avatar
  • 229
1 vote
1 answer
58 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?
user avatar
  • 111
1 vote
1 answer
79 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 ...
user avatar
  • 113
1 vote
1 answer
201 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 -...
user avatar
  • 564
0 votes
0 answers
18 views

How to log hardware usage stats for some time and get peak swap usage?

I'm building Android frequently and I need to figure out peak swap usage during build process. How I can do that?
user avatar
  • 47
0 votes
2 answers
35 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"...
user avatar
  • 4,327
0 votes
0 answers
23 views

'apache2 -k start' keeps on appearing in htop and chokes memory

I had some "Out of memory" problems on my ec2 instance, so i enlarged it a bit so i can at least ssh into it and find out what's the problem.. the server itself runs apache2 and serves 2 ...
user avatar
0 votes
1 answer
119 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)?
user avatar
  • 101
0 votes
1 answer
48 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 ...
user avatar
  • 213
0 votes
0 answers
59 views

htop - How can I sort applications by thr + kthr options?

I have enabled thr and kthr to be displayed on htop; how can I sort based off those fields?
user avatar
  • 2,629
-1 votes
1 answer
122 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 ...
user avatar
  • 531
0 votes
1 answer
177 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 ...
user avatar
  • 363
0 votes
0 answers
56 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 ...
user avatar
1 vote
1 answer
154 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 ...
user avatar
0 votes
0 answers
46 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?
user avatar
1 vote
0 answers
287 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 ...
user avatar
  • 1,195
1 vote
0 answers
44 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 ...
user avatar
  • 504
0 votes
1 answer
36 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 ...
user avatar
7 votes
1 answer
2k 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 ...
user avatar
  • 173
0 votes
1 answer
109 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 ...
user avatar
  • 103
1 vote
1 answer
50 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 ...
user avatar
0 votes
0 answers
374 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 ...
user avatar
0 votes
1 answer
384 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 ...
user avatar
3 votes
2 answers
198 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(...
user avatar
  • 133
1 vote
2 answers
113 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 ...
user avatar
1 vote
1 answer
629 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 ...
user avatar
  • 68
0 votes
1 answer
858 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 ...
user avatar
  • 101
0 votes
1 answer
181 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 ...
user avatar
  • 103
0 votes
1 answer
1k 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 ...
user avatar
1 vote
1 answer
2k views

Is there a way to collapse the list of processors in htop?

Now that I have a computer with 64 processors, I have a real display problem with htop. When I look at the screen in my console, all I see are the 64 processors and nothing about what's running (well,...
user avatar
  • 2,305
4 votes
1 answer
2k views

How to monitor the performance of "iptables" kernel module?

I would like to know how much CPU / memory my current iptables rules consume. I have tried looking in ps and htop, but even with kernel threads displayed and did not see anything related to iptables. ...
user avatar
1 vote
0 answers
279 views

How does htop calculate times? (Impossible times shown)

I was running what was supposed to be a small make job on a small node in our cluster, but a sorting process seemed to be overwhelming the allocated RAM, so I killed it after 20 hours (same jobs on ...
user avatar
  • 111
2 votes
2 answers
330 views

How to show only processes which consume more than certain % of memory using htop

Is there a way to show the processes using htop which consume say > 10% or CPU? I am a bit overwhelmed by the huge swaths of information.
user avatar
  • 153
0 votes
1 answer
272 views

Apache uses 9GB of RAM but htop only shows 2.7GB of used RAM. Why?

My website is very slow at some times of the day, and I'm on the quest of finding out why. I'm currently looking into Apache memory usage and I have 2 tools that are supposed to tell me how much RAM ...
user avatar
  • 119
1 vote
0 answers
464 views

htop reports high CPU% for process with low CPU% in visualization

I am trying to get a practical understanding of load in a server application. The application reads a large volume of data on a TCP connection. When I examined CPU utilization with htop, the process ...
user avatar
1 vote
0 answers
44 views

Why one application is shown several times in htop? [duplicate]

I run a simple Python script in a docker container (single process, no multiprocessing or multithreading). When looking at it with ps (one instance): root@srv ~# ps -ef | grep homemonitor root ...
user avatar
  • 1,268
2 votes
1 answer
388 views

htop - how can I enable the new metrics for "delay accounting"?

htop has some new metrics: PERCENT_CPU_DELAY (CPUD%) The percentage of time spent waiting for a CPU (while runnable). Requires CAP_NET_ADMIN. PERCENT_IO_DELAY (IOD%)...
user avatar
2 votes
0 answers
74 views

Using killall with -u and -o options

I wanted to confirm some details with the killall -o option. I tested it on some ssh connections I created under the user rick. First I printed a list of all of ricks ssh connections along with the ...
user avatar
0 votes
2 answers
1k views

In the command column of htop, sometimes the full path is displayed, and sometimes it isn't. Why?

Above is htop running in a terminal emulator. In the command column, some of the processes have their full path, eg. /usr/bin/python3, and some of them have just the command name, eg. caja, xonsh. ...
user avatar
  • 103
2 votes
1 answer
418 views

Htop signals seem not to be sent on (K)Ubuntu 18.04

I am on Ubuntu 18.04 (Kubuntu), running through Konsole. I have a node process I can see in htop if I F4 and search for node. I highlight it and use F9 to send it a signal (tried SIGINT, SIGQUIT, ...
user avatar
  • 23
12 votes
4 answers
6k views

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....
user avatar
  • 6,246
1 vote
1 answer
261 views

Distribution of threads among CPUs?

lscpu gives: Thread(s) per core: 2 Core(s) per socket: 32 When running an intensive 32-threads process, why does htop show almost 100% CPU activity on #1-32, but very little activity on #33-64? ...
user avatar
  • 1,072
1 vote
1 answer
212 views

What is pool in htop? [closed]

What is DedicatedWorker and pool? How can I see their thread and source in bash for instance if I want to know where pool is getting initiated and on which port it is running? As shown in the image, ...
user avatar
0 votes
1 answer
2k views

htop - why does cpu% much higher than cpu core %?

So I have htop running on my RHEL 7.5 64-bit and noticed something I've not seen before. I have 4-core and it shows that the % used fluctuates but never over 95% for each one. However, when I look ...
user avatar
1 vote
1 answer
1k views

htop and crontab

I have a crontab like this for root user: 9 17 * * * TERM=xterm /bin/bash /root/htop_stat.sh htop_stat.sh: /usr/bin/echo q | /usr/bin/htop -C | /usr/bin/aha --line-fix | /usr/bin/html2text -width ...
user avatar
  • 181