Questions tagged [top]
Command-line application for monitoring running processes.
137
questions
0
votes
0
answers
85
views
Very high load even nothing is done
I have the below Ubuntu server hosted by a commercial hoster. The hoster says he has no clue.
Attached a screenshot from top where can be seen which processes are slowing down the server.
It's more or ...
5
votes
1
answer
779
views
How to set workspaces in Ubuntu 21.10?
How can a row of six workspaces be set in the top panel in Ubuntu 21.10?
3
votes
2
answers
60
views
Launch top with filters?
Is there a way to run top with these filters by default:
filters: '%CPU>0.0' + '!COMMAND=top'
?
Can I pass that via command line options?
0
votes
0
answers
58
views
Why is my Ubuntu server running many tmux server processes?
I'm running Ubuntu 21.04 on a Raspberry Pi 4B. I'm viewing top to monitor what's going on and it is showing at the moment 11 'tmux: server' processes. Tmux is running, showing one window containing ...
0
votes
2
answers
82
views
How to infer top command VSZ & Resident memory numbers active usage / free?
I have two vm's one with 2vCPU , 4GB RAM and other with 4vCPU and 8GB RAM
Now I have installed / ran the same application(k8s pods) with same memory , cpu allocations , requests , limits on both the ...
0
votes
0
answers
402
views
Overall CPU utilization% of 'htop' is smaller than a process' cpu usage
Because of my stupidity, I can't provide any screenshot of such phenomenon. My 2-core system's cpu utilization(which is output of htop command) is smaller than the cpu usage of a process.
For example,
...
0
votes
0
answers
48
views
How to list CPU usage of all threads of my program?
Launching top then pressing H will list all threads on the system and their CPU usage.
How to list all threads from a single process?
I want to monitor my app threads and their CPU usage
0
votes
0
answers
49
views
Output of `top` command not saved to variable
I created the follow bash script, called ./notify-me.sh, in Ubuntu:
#!/bin/bash
emailmessage=$(top -b -o %CPU)
echo $emailmessage
But when I run this script by doing ./notify-me.sh and pressing the ...
3
votes
1
answer
2k
views
System information disabled due to load higher than 4.0 but it ain't higher than 4.0
On one of my Raspberry PI's I got the following warning after login:
System information disabled due to load higher than 4.0
But top doesn't reflect that (see screenshot), am I missing something?
2
votes
3
answers
233
views
Find the total CPU usage on Ubuntu server version 20.10 without installing additional tools
I need to find the total CPU(s) usage of the server without installing additional tools.
Do I understand correctly that the field id of the top command in CPU(s) line can help me with it?
Can I do 100 ...
1
vote
2
answers
95
views
how to find the jobs run by each local users
I am interested in finding what applications/scripts are executed by each linux user.
I can find the number of jobs run by a specific user with the following command
ps -u <USERNAME> -U <...
1
vote
2
answers
1k
views
How to show actual memory usage instead of "%MEM"
In Linux, when using top to see how much memory a process is using, how do you force the thing to actually tell you how much memory things are using (instead of having it obfuscate the actual value by ...
0
votes
0
answers
48
views
How do I launch the network manager pop-up menu window displayed in attachment within Ubuntu 18.04 and LXDE?
I would like to know:
What is the name of the program that manages the network icon on the top bar of Ubuntu 18.04 with LXDE? The network icon I meant gets highlighted with a red circle on the ...
-1
votes
2
answers
75
views
How do I interpret output from "top" command? How do I see actual CPU load?
I thought top showed how heavy the load was on the CPU (& mem). Baffled by results showing >275% CPU usage (see output from top at the bottom), I read a bit in the documentation, and it looks ...
0
votes
0
answers
110
views
unknown users when running top command
When I run top command there is 1 users listed but then other users are listed in running proecesses they are
message+, kernoops, and syslog,
I am trying to work out if my system is compromised but am ...
0
votes
1
answer
175
views
top command till a process runs out
I'm running a process and I want to store its CPU usage.
So I used top command
{ test_case.sh > out.log ; } && { sleep 2s ; x=`pidof test_case` ; top -p $x -d 5 -b > cpu.log ; }
But the ...
0
votes
0
answers
76
views
Unknown user 2003 running haiduc command in my vps
There is an unknown user named 2003 running command haiduc on my vps when i run the command 'top'. However the user 2003 does not exist. Does anybody know what this is?
0
votes
0
answers
361
views
How to get (from terminal) total number of threads per core?
I want to know how can I get the total number of running threads per core (in the runqueue) in the terminal (to be used in a bash script)?
6
votes
1
answer
581
views
How to set memory usage sort in top command as default?
I want to sort the memory usage in top command as default. So that i do not have to sort in every i run top command.
How to do that?
Thanks in advance....
2
votes
0
answers
285
views
Context menu missing when right-clicking on top panel in Ubuntu 20.04
I did a clean install of 20.04 a couple of days ago and have been customizing my machine since then. When I right-click on the top panel, the context menu doesn't appear. I am used to using earlier ...
3
votes
2
answers
3k
views
Check how many processor cores my Python code is running on?
I want to check how many cores my Python script is using.
Suppose that I have this code:
while True:
print('Hello World!')
When I run top, it gives the CPU, Memory, percentage in addition to ...
0
votes
2
answers
753
views
Calculate CPU usage from top command
I have to display the CPU usage on my application and update it in real time. I am using following command to get the CPU usage:
top -b -n 2 | grep Cpu | awk '{printf "CPU Load:%.2f\n", $(NF-13) + $(...
1
vote
1
answer
861
views
How to investigate an unknown process called `frontend` pegging CPU all the time
As my laptop (Dell precision 16Gb, ubuntu 18.4) had been slower than usual, I had a look at top.
Here I have a process, called frontend pegging 50% of the CPU.
PID USER PR NI VIRT RES ...
0
votes
1
answer
301
views
Distance between icons
Anybody knows how to change distance between icons in top panel ubuntu 18.04? I need to do it smaller
1
vote
0
answers
342
views
Ubuntu Studio running slow after some months
I am a Ubuntu Studio user and general Linux novice. I installed the latest Ubuntu Studio on my Dell Vostro 400 Q6600 quad-core, and it ran perfectly for many months. Now it's unusable. When I boot up,...
0
votes
1
answer
355
views
Cannot see process of service in top or ps
Status of my Postfix service is systemctl status postfix:
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled)
...
0
votes
1
answer
362
views
Monitor number of running processor cores via terminal
I have a server where there are 144 procs and is being used by multiple people with the same account id. Is there any way I can see how many processors are free (in the terminal) so that I can ...
8
votes
2
answers
7k
views
How to permanently set refresh interval for top command?
I'm just looking at the tutorials for top command and came to know that the refresh interval can be overridden by hitting S on the keyboard while the top command is displaying information.
The ...
0
votes
1
answer
324
views
what happens when pressing Enter when "top" command is run
when I run top, I see list of Linux processes. but when I press Enter, it will change and I don't understand what happens.
Also when I press other button f,g and h somethings happens.
please explain ...
2
votes
2
answers
586
views
KSysGuard Reporting Memory Usage Incorrectly
A couple of times recently I've noticed my laptop running a bit slow and the disk light flickering a lot. It's an i7 with SSD and 12GB RAM, so I'm not really expecting much slowness when just ...
2
votes
3
answers
640
views
cutting 'used memory' from top command
Using the top -b -n1 command I can get the resources utilised by my system for that instance. However, I actually need specific values out of it. I need things like, overall CPU usage, overall memory ...
0
votes
4
answers
747
views
Find out what is starting processes by command
My machine keeps starting processes with command "java" (listed under "command" column in top), that proceed to eat up all my resources for a few seconds, then disapear, a few seconds later a new one ...
1
vote
1
answer
585
views
Help uninstalling 3rd party software
I recently installed Cisco Anyconnect in order to VPN into my university's intranet when off site. This software, however, has gone rouge and is crashing my computer regularly. Here is a top example:
...
2
votes
1
answer
934
views
Crontab command not register the top command result into the output file
I'm using Ubuntu 16.04 and I created a sh file.
cd /home/malus
echo "______________________________________________________________________" >> /home/malus/top.txt
date >> /home/malus/...
5
votes
2
answers
6k
views
multi-core CPU usage
I am using the Windows Subsystem for Linux (WSL), and I am unexperimented in the capabilites of linux.
Recently, I've been wanting to get better insight in the CPU usage of processes, but I am getting ...
2
votes
1
answer
2k
views
vim using up 100% CPU, can't kill it
Every so often (about once a month), my vim starts eating resources like crazy, and I'm unable to kill it. Here's an example:
I ran:
kill 13799
To no effect. I would like to know:
1) Could be vim ...
4
votes
1
answer
471
views
What is the "store" process?
Looking through top, I saw a process called "store" taking up one of my CPUs. What is this process? Perhaps it is referring to the app store? If so, I wonder why it is working in the background.
...
1
vote
0
answers
28
views
How can I see the total memory used by, for example, google and firefox processes? [duplicate]
top and ps show multiple processes for these applications. Is there a simple command to show only one entry for each application showing the total?
I don't believe this is a duplicate of How can I ...
1
vote
1
answer
1k
views
CPU core stuck at 100% utilization
I noticed that my laptop's fans were running continuously at high RPM for a few hours. I installed HTOP to check CPU utilization, and found that one of the 8 cores is stuck at 100%. Even after ...
1
vote
0
answers
337
views
How to increase the number of characters in top's COMMAND column?
OS: Ubuntu 18.04.1
When I run top from gnome-terminal as a maximized window, I see that entries in the "COMMAND" column don't exceed fifteen characters. (I'm not asking about the command-line mode ...
1
vote
0
answers
356
views
Task/Resource Manager Memory Usage Accuracy Ubuntu 18
I'm running Ubuntu 18.04LTS (8GB RAM) and I noticed how the Gnome task manager, the "top" and "htop" applications give me 3 considerably different memory usage figures. For instance, right now:
...
1
vote
1
answer
644
views
Disable bold font in 'top' command
I want to have a custom 'watch' command that also includes the output of a single round of top -n 1, but the escape characters do not translate well. Is there a way to disable the bold font of the top ...
5
votes
1
answer
4k
views
Gnome Shell and high cpu usage
I am running ubuntu 18.04 on a old(ish) laptop, it's a hp dv7 6180sl with upgraded ram (16gb) and SSD. It's old but still fast enough for my job.
Since a few ubuntu versions (I always do a complete ...
1
vote
2
answers
1k
views
How to analyze video card RAM and GPU load? [duplicate]
I would like to analyze my video card performance (RAM, load, etc) the way that top, free and lscpu does for my main hardware.
Is there an app to do this?
0
votes
1
answer
19
views
Why showing double vhost-2473 in KVM?
why system showing double vhost-2473? I have installed KVM and created a Guest machine with two interfaces on the Ubuntu-14.04 server. When I keep running the Guest machine, the Host machine showing ...
31
votes
5
answers
7k
views
How do I quit top without leaving the output on the terminal?
How do I get top to quit similarly to the way less quits, that is, not leaving behind its output on the screen?
This is the version I have:
procps-ng version 3.3.9
13
votes
1
answer
4k
views
GNOME system monitor and top showing different CPU usage
When I play a movie with SMPlayer (video:mpv) and I check my CPU usage with GNOME system monitor, it shows %4 or %5 CPU usage (1 second update interval), but htop shows %45 CPU usage:
top shows the ...
5
votes
0
answers
1k
views
Gnome Shell Memory Leak [closed]
I am running Ubuntu 17.10 with an Nvidia GTX 1070 and gnome-shell, also I have 16G of memory. Recently the process gnome-shell running after a few hours starts taking a lot of memory and the computer ...
-1
votes
1
answer
150
views
What's the difference between two PID processes?
What's the difference between the two processes here, they both have similar files and dir inside them?
1
vote
1
answer
2k
views
What processes are running on which CPU?
Running "top" shows you how much CPU power is used by each process.
Suppose you have several CPUs. Is there a utility that shows you the same information as top, but for each individual CPU?
For ...