htop is an interactive process viewer for Linux. It is a text-mode application (for console or X terminals) and requires ncurses.
Questions tagged [htop]
126 questions
0
votes
1 answer
Debian: Cannot fork (Memory Issue)
Recently my processes started to randomly die with an out of memory exception. Furthermore the restart script for those processes printed:
./start.sh: 4: ./start.sh: Cannot fork
The script looks like this:
#!/bin/sh
#EU1
while :
do
if ! screen…

Jalau
- 303
- 1
- 2
- 11
0
votes
1 answer
With an n core machine why does htop continously claim only 1 process running?
While reading about htop:
"In the top right corner, htop shows the total number of processes and
how many of them are running."
If I have an 8 core machine (seen above), and I'm currently running over 100 processes, why is htop always…

Trevor Hickey
- 36,288
- 32
- 162
- 271
0
votes
1 answer
htop reporting Tomcat 8.5 as consuming 4GB when I've set -Xmx1024M
I have configured my Tomcat instance to not use more than 1GB of RAM by setting the following in setenv.sh:
$ cat /opt/tomcat8.5/bin/setenv.sh
#!/bin/sh
export JAVA_OPTS="-Djava.awt.headless=true -server -Xms48m -Xmx1024M…

Marcus Junius Brutus
- 26,087
- 41
- 189
- 331
0
votes
0 answers
What causes an openmp program to run some threads in D state for large dataset size?
I am implementing an OpenMP multithreaded program on following machine.
x86_64, On-line CPU(s) list: 0-23
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 2
It is a multithreaded clustering program. It shows expected…

Hardik Malhotra
- 114
- 1
- 10
0
votes
1 answer
Single threaded Java application - htop shows 14 rows
I have a simple single-threaded application in Java. Surprisingly, when I run it and open htop, I see some 14 child entries, as captured in the following screenshot.
What do these entries represent?

Dušan Rychnovský
- 11,699
- 8
- 41
- 65
0
votes
1 answer
htop cross compiled for arm, getting the error "Error opening terminal: console." when htop is executed
cross compiled htop for arm,
when htop is executed on the target, I am getting the error "Error opening terminal: console."
can anyone help what could be the issue ?

enthu
- 69
- 11
0
votes
0 answers
ubuntu. How run echo script in cron?
I want to log my system from htop.
How run this script in cron?
echo q | htop | aha --black --line-fix > htop.html

user2497209
- 45
- 1
- 6
0
votes
1 answer
htop and OpenMP threads
In my main function I set:
omp_set_num_threads(20);
which tells OpenMP to use 20 threads (have 40 threads available).
I then execute my code which contains the directive:
#pragma omp parallel for shared(x,y,z)
for the main for loop, and monitor…

user1938803
- 189
- 2
- 10
0
votes
1 answer
Slurm starting more jobs than I ask
I am running a job on a multinode cluster with slurm, OpenMPI, and python (anaconda with MKL).
When I submit the job it all seems to work as expected. However, if I login to one of the nodes running the job and use htop to see the running processes…

gex
- 11
- 3
0
votes
2 answers
Does Socket.IO forks or spawns a new process when run?
I have a node application that uses Socket.IO for the messaging.
And I run it using
node --expose_gc /path/to/app.js
Now, when I check on the htop utility, I noticed that instead of 1, I am getting multiple processes of the same command.
Can…

Aldee
- 4,439
- 10
- 48
- 71
0
votes
1 answer
Get thread Id for a process programmatically that matches htop's corresponding pid
I have seen that in htop's tree mode my multithreaded program has several processes under it. I know they are thread ids. But this id doesn't match the thread id that was returned by the pthread_create function.
int _id =…

Tahlil
- 2,680
- 6
- 43
- 84
0
votes
1 answer
measure CPU usage per second of a dynamically linked library
I have a sample application which uses a dynamically linked library library.so. I was measuring CPU usage of the sample application with the top command. But it shows CPU usage of both sample app and library.so per second. But I want to see the CPU…

Tahlil
- 2,680
- 6
- 43
- 84
0
votes
1 answer
How does htop display work?
I want to write a program that displays its output in the shell like htop does, as opposed to just running the program and using the watch command. I have looked through the htop source code and am still a little lost. Is there a output beyond tty…

yeahwhatever10
- 3
- 2
0
votes
1 answer
Go not using cpu fully
I've been playing around with a simple raytracer in go that has been working pretty neatly so far. I'm using multiple goroutines to render different parts of the image, which then place their results into a shared film.
Against my expectations, my…

panmari
- 3,627
- 3
- 28
- 48
0
votes
1 answer
"used memory" high, but seems inaccurate - ksysguardd compared to htop?
I'm monitoring a remote machine using ksysguardd, and it reports a flat unchanging timeline of 3.6 gigs, with free memory of .20 (the machine has 3.85 gigs available)
Yet with htop a range of 400-600 / 3830MB is used.(Which it signifies by a full…

Orangeman555
- 1,179
- 2
- 21
- 45