Questions tagged [top]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
10 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. ...
0
votes
0answers
11 views

Does Linux top MEM% include SWAP memory?

If I have 8Gb RAM (and 8Gb swap) and I have a task which ate 2Gb of SWAP. In top I see %MEM memory usage column. It shows 10%. Does this mean that this task ate 10% of both RAM and SWAP (16Gb) or just ...
0
votes
1answer
39 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 ...
0
votes
0answers
21 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 ...
0
votes
1answer
100 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 ...
0
votes
0answers
19 views

htop red CPU usage doesn't listed on both top and htop tables

When htop shows a red CPU usage, it means a kernel process is in use. I tried listed it in both htop by toggling Shift + k and top, and the "red CPU usage" is not being shown in the table ...
0
votes
2answers
569 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 ...
0
votes
0answers
50 views

High CPU load average, yet 20% idle time

I am running a very multithreaded program on a 16-core ARM computer powered by Amazon Linux 2, and I'm trying to figure out just how CPU-bounded it is, versus bounded by other factors. This computer ...
0
votes
0answers
21 views

Is the cpu idle value of top reliable?

Running top for one hour and calculating the cpu used of the five most haviest processes only, gives another result which differs more than 10% of that from top's idle value. For day comparisson I got ...
0
votes
1answer
13 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 ...
1
vote
1answer
99 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 ...
1
vote
0answers
207 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 ...
0
votes
1answer
16 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("...
0
votes
2answers
148 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 ...
1
vote
1answer
420 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 ...
0
votes
0answers
38 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): ...
1
vote
1answer
43 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'...
0
votes
1answer
56 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,...
0
votes
1answer
335 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 ...
1
vote
2answers
507 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 ...
0
votes
1answer
126 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): ...
0
votes
2answers
2k 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 ...
1
vote
0answers
29 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/...
2
votes
2answers
4k 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 ...
0
votes
1answer
197 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 ...
1
vote
1answer
856 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 ...
1
vote
2answers
156 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 ...
1
vote
0answers
79 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 ...
0
votes
1answer
1k 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 ...
0
votes
0answers
253 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 ...
1
vote
0answers
174 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" ...
1
vote
0answers
37 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 ...
3
votes
0answers
139 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 ...
1
vote
0answers
208 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): ...
0
votes
0answers
74 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% ...
1
vote
1answer
87 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. ...
1
vote
0answers
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 ...
0
votes
1answer
295 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-...
0
votes
0answers
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 ...
23
votes
2answers
52k 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%...
3
votes
1answer
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'...
0
votes
1answer
3k 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.
1
vote
1answer
408 views

top memory used and percent don't match

I have an ec2 server and sometimes I have memory issues - I've had the mysql process killed due to out of memory. This breaks my website and game and sometimes it takes me hours or days to notice :(. ...
0
votes
2answers
365 views

How do I use top (or equivalent) to determine if a process is behaving badly?

Are there indicators for when a process has "gone over to the dark side"? I feel that just using MEM% and CPU% are poor indicators for detecting things such as memory leaks (or other problems, ...
4
votes
1answer
1k views

top equivalent to show I/O per process (per second) on mac/osx

Is there a top-like (visual) tool which can show per process disk I/O (kb/sec)? The question was already asked at Monitor disk activity, á la top, or nettop (per process) on a Mac? and What'...
3
votes
1answer
2k views

What's the equivalent of top -H -p <pid> on OS X?

I need to monitor the CPU usage of threads created by a given process. In *nix one can use top -H -p <pid>, but that not available in OS X. An equivalent of ps -eLo pid,ppid,lwp,nlwp,osz,rss,...
0
votes
1answer
622 views

Find location of process running in top command

When I run 'top' I see a process running named "watchdog" I read up on watchdog via the man page ala Google but I don't have that program installed. I've done a whereis and checked the /dev file to no ...
8
votes
2answers
5k views

How to choose columns for top command in batch mode?

$ top -bn1 | head top - 15:16:52 up 11 days, 5:01, 4 users, load average: 0,00, 0,03, 0,11 Tasks: 411 total, 1 running, 408 sleeping, 0 stopped, 2 zombie %Cpu(s): 4,5 us, 0,6 sy, 0,0 ni, ...
7
votes
1answer
7k views

What kswapd is doing when there is no swap

The top look like this: KiB Mem : 3989652 total, 30976 free, 1480440 used, 2478236 buff/cache KiB Swap: 0 total, 0 free, 0 used. 2276236 avail Mem PID USER PR NI ...
0
votes
0answers
665 views

how do I get the PID list and USERNAME of each of those PIDs in LINUX using python?

I am trying to get the PID's and their respective usernames for displaying something similar to the top command in linux. I managed to get the list of PIDs but I am unable to fetch any username for ...