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.

126 questions
0
votes
2 answers

Ncurses, updating screen and breaking a loop

I'm trying to make a htop like in ncurses. I'm doing an infinite loop to have the information updating and a condition to make it stop. But it doesn't update itself because it wants to check the input before. What shall I do ?
Vavas42
  • 1
  • 1
-1
votes
1 answer

Script to restart the PID automatically

I was wondering if you have any scripts that take the PID of the processes that are sleeping (S) and restart it automatically restart_pid() { # First we need to find the program's arguments SAVED_COMMAND="$(while IFS= read -r -d $'\0' f; do printf…
-1
votes
1 answer

How to find out, which program is using 24 GB RAM?

I've recently rented a new server with 50 GB RAM. And even though I haven't install any powerful soft on it, htop show that there are about one-half memory in usage (screenshot in attachment). Could you explain why? Thanks in advance!
Sergey Potekhin
  • 621
  • 1
  • 11
  • 27
-1
votes
1 answer

how does htop gather system information in linux

How does HTOP gather information like CPU consumption, memory consumption etc by every process and the whole system? I am not familiar with any operating system specific api (like socket api) that is provided by linux in order to gather those…
-2
votes
0 answers

Server is overloaded because of dhcpi

I run the command "htop" in the server and see that the CPU is occupied a lot due to the config.json file in the /usr/lib/updated/config.json directory. What do I have to do to turn it off? enter image description here I disabled the dhcp service…
-2
votes
1 answer

Linux high cpu usage - htop shows 90% to 100% cpu usage

I installed a fresh Manjaro Linux on my laptop and it works okay but I noticed high CPU usage when i ran the htop command. One of the cores were constantly busy near 100% and the 2nd one was around 90% (I got 4 cores, the remaining 2 are running…
cpu1001
  • 7
  • 2
1 2 3
8
9