Questions tagged [top]

Top is a UNIX program that shows system usage in real time.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Differences between STOPPED in top command and STOPPED in ps

I have a running script in a docker container. After a while, I found that the processes seemed to be in stuck when I used ps -ef command, since the TIME field for those processes were stuck in a ...
Monstery's user avatar
1 vote
0 answers
76 views

RHEL7 - High CPU load when write to NAS

I do not understand, what is the reason for very high "load average" reported by top. This is RHEL 7. The problem is repeatable. We have one remote NAS and when one user-space process start ...
meolic's user avatar
  • 133
2 votes
0 answers
176 views

htop show different cpu usage with top

I'm running fedora in virtualbox with 2 cores. a.out is just a simple single-threaded program. I don't know why htop gives 200% CPU.
Lewis Chan's user avatar
0 votes
1 answer
39 views

is it possible to capture output of top -c -n1 -b into a text file - but preserve the full output ( i.e not truncated at right side) via shell

I used top -c -n1 -b | tail -18 > topout.txt successfully. the topout.txt shows me full output of process names/command used. But - once I copy this line of code in a .sh file and run via crontab ...
Sudheer Godgeri's user avatar
0 votes
0 answers
90 views

Processes on a CPU

How do I monitor/list the processes currently running on a specific CPU core. Basically I'm looking for an output similar to 'top' or 'htop' command but filtered for a specific CPU core id. Or the ...
ss3071's user avatar
  • 1
0 votes
1 answer
271 views

How to see *all* most CPU-consuming processes in Linux?

The "CPU Frequency Scaling Monitor" applet shows my CPU is running at its maximum most of the time : However, the results of the top command always show that the top processes are around 2%,...
Georg's user avatar
  • 133
3 votes
1 answer
9k views

Remote monitoring on MobaXterm

There is a remote monitoring bar at the bottom of the MobaXterm. That's very cool and it is near real-time. I wish I could full-screen the CPU utilization chart, but it is not possible. A similar ...
A.A's user avatar
  • 133
1 vote
1 answer
2k views

How can I group processes by application in htop?

In htop, how can I group processes by application? I've tried pressing H, but that doesn't seem to do the trick. Here is a good example of the problem I'm trying to solve: In the above, I want to see ...
Ben Davis's user avatar
  • 185
1 vote
1 answer
780 views

Why is used memory reported by free much less than resident usage for a single process as reported by top?

I have a potentially problematic application that may have memory leak issues. However, in the process of investigating this, I've come across what seems to be conflicting information. When I use free ...
wolfcastle's user avatar
0 votes
1 answer
871 views

How to sort output of top command based on nice value?

We can use Shift+p to sort on basic of cpu usage, Shift+r to sort on basis of pid & Shift+m on basis of memory utilisation. How to sort output of top command based on nice value?
Udesh's user avatar
  • 862
0 votes
0 answers
722 views

WA% in top command

Can someone explain what does the WA% command mean? I've gone thru several SO questions but my doubt still remains WA is the amount of CPU time that was waiting on IO How does CPU ever wait on an IO? ...
ffff's user avatar
  • 101
0 votes
1 answer
422 views

Show total cpu for a set of processes in linux

I want to monitor the total cpu usage of all the process corresponding to some filter. For example all the process witch corresponds to some executable. On top or htop I can filter the process list, ...
nadapez's user avatar
  • 213
0 votes
0 answers
14 views

How to pause the output in top [duplicate]

I distinctly remember there being a key one can press while running top that pauses the output, and then you can press the same key again to resume updates. However I can't seem to remember the key. ...
twhitney's user avatar
0 votes
1 answer
4k views

How do I get 300% CPU usage? Is top command flawed? [duplicate]

Here's a picture of the top command on my VPS. As you can see sqlserver + dotnet are taking near 300% CPU usage. How is that even possible? Can I trust top results from now on? Is this app flawed and ...
Saeed Neamati's user avatar
0 votes
0 answers
152 views

su processes spawning with high CPU (Debian 9)

I am running a VM on Google Cloud with Debian 9. I should be the only user with access to the VM. Every so often the Web application I am running (phpbb) becomes very slow. When I log into to look at ...
badroit's user avatar
  • 151
0 votes
1 answer
233 views

Slow computer because of bad SSD?

my computer normaly is working very fast ( for me), but sometimes start to work very slowly ( it is 3-rd time). I have system on ssd drive. I have read tha it may be bad ssd drive. I checked: df the ...
Adam's user avatar
  • 221
2 votes
2 answers
10k views

There is no top command in docker container

I try to deploy an app in docker container using mcr.microsoft.com/dotnet/aspnet:5.0 image that need to have top command when I try to run top command the following result shown: bash: top: command ...
AliReza Beigy's user avatar
0 votes
1 answer
28 views

/usr/bin/top OS X 10.15.7 takes 15 seconds to start then uses 33% CPU

OS X 10.13 /usr/bin/top would start instantly and takes a couple % CPU at best. After upgrading to 10.15.7 Catalina, it takes literally 15 seconds for the proc info to come up and it is at the top of ...
Buzz Moschetti's user avatar
1 vote
1 answer
654 views

Why are results from `top` in batch mode different than from interactive `top`?

When I run top -b -n1 -o +%CPU my asterisk rarely appears as one of the top processes and the top is usually the first. But when I run top interactively asterisk is usually number 1. Why is that? Is ...
Petepf's user avatar
  • 53
2 votes
0 answers
661 views

bashtop and bpytop do not display properly in putty

I have installed bashtop or bpytop (on a minimal CentOS install) but I just get a jumbled mess of colour blocks on the screen. I've made sure to do sudo yum upgrade and rebooted, but still garbled ...
YorSubs's user avatar
  • 729
0 votes
1 answer
91 views

Tail log and output top processes upon encountering string fails

I am running the following command to tail a log file and output top processes to a file upon encountering a given string: tail -f mylogfile.log | awk ' /server on fire/ { system("...
Branka's user avatar
  • 101
0 votes
2 answers
344 views

top: how to fix the "window entry #1 corrupt" error

I have a ~/.toprc exactly like the one here, and it has always been fine. However, since I update my Ubuntu to 20.04 LTS from 18.04, I no longer able to run top with it any more. This is what I'm ...
xpt's user avatar
  • 8,359
1 vote
1 answer
1k views

What is the command to see what files in linux is currently being written or read?

Just like top command which tells what process is running in the system and what is it doing like which process is running and taking CPU. I want to know in the running system what currently the ...
tannoy connect's user avatar
0 votes
0 answers
216 views

What is the real command to know the total real time CPU % status on Linux env and what is the ideal value

I understood that top and htop give a lot of info in real-time on the server status. But what really gives me the total CPU of the server? can I rely on the id column from the top command: %Cpu(s): ...
arielma's user avatar
  • 101
1 vote
1 answer
108 views

Why can ec2-user see root processes?

I was under the impression that, for security reasons, one user cannot see processes (and their respective command-lines) run by another user. Why is it when I run top on a Linux 2 AMI I can see root'...
Gili's user avatar
  • 1,841
0 votes
1 answer
86 views

Piping top to text via with crontab and full message?

I am running this: top -b -n 1 -o %MEM > /home/me/top/top.`date +\%F.\%H\%M`.txt Which works fine when I run it, but when I put in crontab for every 10 mins, the COMMAND section is always cut off,...
Wells's user avatar
  • 175
0 votes
1 answer
773 views

Why can't top find my python processes on ubuntu?

I am running a Kubuntu (ubuntu), and I executed two command-line apps through the terminal. My user is 'martin'. In the 'top' window, i can't see my python3 processes: python3 command-line-1 python3 ...
marlon's user avatar
  • 3
1 vote
2 answers
1k views

SSH refuses to timeout if a top session is open [Linux]

If I ssh to a server and i open top packets are being sent over the network, so the normal ssh timeout(because of idling) will not work. This means an ssh connection can stay open forever if a top ...
Boyan Atanasov's user avatar
0 votes
1 answer
386 views

CPU LOAD Average + when to set when threshold

We have a cluster with physical machines HW Each machine contains 32 CPU # lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): ...
King David's user avatar
0 votes
2 answers
3k views

Check if a process is running on a remote machine

I am running a python programme on a remote machine using ssh. It includes a timer, so the main body of the code won't do anything until a certain time of the day. I want to check that the code is ...
user1551817's user avatar
1 vote
0 answers
38 views

How to get just the command's filename instead of the full path in the "Command" field of glances?

glances show the full path and all arguments of the command of each process in the Command column, something like this: 520M 51.6M 14136 user 0:46 1 0 R 0 0 /usr/share/...
motam79's user avatar
  • 480
2 votes
2 answers
5k views

List Top 10 CPU and Memory consumption processes - Linux

I am trying to find the top 10 processes which are consuming more CPU and Memory using the command ps -Ao user,uid,comm,pid,pcpu,pmem --sort=-pcpu | head -n 10 But it's not showing the correct data ...
Thangan's user avatar
  • 21
0 votes
1 answer
377 views

Understanding Linux CPU usage

I'm stuck with profiling a process of mine, named (see top output) xspectra-frameb. Its inner structure can be summarized as the following: 8 threads are recving bursts of data from socket ...
Patrizio Bertoni's user avatar
2 votes
1 answer
2k views

What am I seeing in htop on Linux?

Not sure if this is the right place for this question but I'll ask it anyway and see where it lands! I have a node process running on Centos and when I run htop, I see a whole bunch of processes that ...
An0nC0d3r's user avatar
  • 151
1 vote
2 answers
405 views

System unresponsive, but no CPU load

One of my servers is completely unresponsive: top - 06:16:53 up 2:14, 1 user, load average: 30.95, 29.96, 22.92 Tasks: 168 total, 2 running, 166 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 ...
blueFast's user avatar
  • 2,666
1 vote
0 answers
104 views

Weird numbers from top command

I searched a lot on Google about my problem and found some interesting responses (many of them on SuperUser itself) but nothing that could explain what is happening to me. I wanted to check the CPU ...
Brutus's user avatar
  • 153
0 votes
1 answer
2k views

How to tell if a process is running in the host or in a docker container

I have a lot of gitlab processes, but gitlab is not installed in the host: » ps -ef | grep -c gitlab 61 Those processes, at first sight, look like normal processes: » ps -ef | grep gitlab | head ...
blueFast's user avatar
  • 2,666
0 votes
0 answers
351 views

Centos Web Server laravel slow site

I have a problem with memory on my centos server when I reboot the server it is fine, oh and by the way, this server is hosting only one website with Apache web server and MySQL as the database. after ...
Amir Ebrahimi's user avatar
1 vote
0 answers
266 views

How to ssh in, start top, and close ssh session with a custom ~/.toprc

If I log into my remote host via ssh and run top, it picks up the ~/.toprc configuration file. I can also run the following command successfully ssh -t <user>@<host> "top -b > top.dat" ...
jesse_partman's user avatar
1 vote
0 answers
39 views

How to interpret the results from calling top in terminal

After running $ top I've noticed that the white values are always significantly larger than the red, which seems strange, but while running no programs except for firefox quantum, the above image was ...
Matthew Ciaramitaro's user avatar
3 votes
0 answers
157 views

What is compressed memory expressed as in relation to memory?

Compressed memory is obviously memory that is compressed to save space, but the macOS utility Activity Monitor and the UNIX utility top are ambiguous about what compressed memory is expressed as in ...
Mona the Monad's user avatar
1 vote
0 answers
263 views

How to save the output of top command in XML format?

top -o %MEM -b > file.txt The file.txt is like: top - 15:49:36 up 32 min, 2 users, load average: 1.56, 1.40, 1.01 Tasks: 83 total, 2 running, 79 sleeping, 2 stopped, 0 zombie %Cpu(s): ...
Ed S's user avatar
  • 113
0 votes
0 answers
84 views

where is all my memory in ubuntu?

When I do top it says KiB Mem: 15396812 total and 14917020 used. Divide those into one another and you get about 96.8% memory usage. BUT... in the process list, in the %MEM column it shows 40.5% ...
neubert's user avatar
  • 6,983
1 vote
1 answer
141 views

Size of network packets displayed in top command

I want to calculate the network(in & out) bytes. I used nettop but it's not working as expected like mentioned here. So, I moved to top. The output shows total number of packets and total size. ...
SkrewEverything's user avatar
1 vote
0 answers
1k views

Which is correct: OSX Activity Monitor Swap Space Used Zero or Bash TOP command Zero Free?

I have several similarly configured macs, osx/macos 10.12.3, used as Jenkins followers. In checking out another issue, I noticed Jenkins' report of its hardware status, claims there are 0 bytes of ...
AnneTheAgile's user avatar
0 votes
1 answer
410 views

Integrating "watch" with "top" logging until finished - HOW?

I stumbled across this link: "watch" the output of a command until a particular string is observed and then exit I know the PID of the process. I want to log the process "resource-...
mshaffer's user avatar
  • 103
0 votes
0 answers
1k views

CPU Usage of individual processes via TOP/Dumpsys cpuinfo

Context: When I run an Android App alone, I get a CPU Usage of 20% (using dumpsys cpuinfo). However, when I run another app in parallel with it, then the CPU Usages goes down, lets say to 13-12%. I ...
utengr's user avatar
  • 101
34 votes
3 answers
87k views

What does TIME+ (cpu time, hundredth) in top mean?

See the example below. Automount is showing 3019:57 in the TIME+ column. Tasks: 241 total, 1 running, 240 sleeping, 0 stopped, 0 zombie Cpu(s): 0.7%us, 0.7%sy, 0.0%ni, 98.5%id, 0.0%wa, 0.1%...
June Bug's user avatar
  • 341
3 votes
1 answer
2k views

How is this machine at 100% cpu when there is nothing high on the htop list?

I have a machine that is being slow and htop is telling me that the processor is locked at 100% but all the processes under it seem to be running pretty low CPU usage... How is this possible? Shouldn'...
Joff's user avatar
  • 227
0 votes
1 answer
4k views

Using Linux Top, How do I view the thread count of a process

With ps I can view the NLWP (number light weight processes) with ps -o NLWP. How do I show this column in top? Only interested in the count.
Justin Thomas's user avatar