Questions tagged [top]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
29 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
0answers
38 views

Visualize the processors and which process is running on each one via 'top' command

I've achieved to display each processor details by using interactive command 1 when running top. I can see the list of processes right underneath the STATES block but there are a lot of them. So now I'...
0
votes
0answers
11 views

Why the load is high in my RHEL even though the CPU utilization is not high?

I am using RHEL8 with 16 core CPU and 32 GB RAM. When I run the top command, I see the load on the system is pretty high - 33 However, I see only 1 CPU is running to its full and all other CPUs are ...
0
votes
0answers
7 views

unix top command line - how to show memory as if you hit the 'm' them 'M' key?

i use top to feed server status to a web interface, i do this by logging it to a file: top -n 1 -b > tmp/top.txt I'd like to update this so that it shows the results as i had hit 'M' (sort ...
0
votes
1answer
12 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
0answers
5 views

top (procps-ng): how to control first sample interval?

Top insists on using a sampling interval of 150ms for the first sample regardless of the -d setting: $ top -v procps-ng 3.3.12 Usage: top -hv | -bcHiOSs -d secs -n max -u|U user -p pid(s) -o field ...
0
votes
2answers
80 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 ...
0
votes
0answers
27 views

Configure htop to display processes by CPU or memory utilization

The top command can be configured to list the processes in descending order by CPU utilization or memory usage. # by CPU usage $ top -o CPU # by Memory usage $ top -o MEM Other configurations (such ...
1
vote
1answer
154 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
34 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
29 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
52 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
143 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
373 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
98 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
1k 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 ...
0
votes
0answers
326 views

osx top command - memory usage in bytes

Is there a option in osx to print stats -"MEM" in bytes. I see that it either prints in M or K which is difficult to parse as I need to check for the unit before grabbing the number.
1
vote
0answers
25 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
3k 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
138 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
632 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
124 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
75 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
748 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
235 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
155 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" ...
0
votes
0answers
71 views

I am getting an unknown process when i run top in my linux machine

i killed that particular process but when i run "netstat -tunap" command it was there with an ip address and port(178.63.48.196:80) allocated to it -The ip address is changing continuously when i run ...
1
vote
0answers
36 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
137 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
193 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
73 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
952 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
271 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
931 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 ...
17
votes
2answers
38k 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%...
2
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
2k 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
371 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
266 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
865 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'...
1
vote
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
454 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
4k 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, ...
4
votes
1answer
5k 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
615 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 ...
1
vote
1answer
931 views

Using `top` to output only the running processes, PIDs and users?

I'd like to run top -n 1 so that it only outputs a list of running processes, their PIDs and the user that has run them (the "COMMAND", "PID" and "USER" columns). I don't need any of the other ...
0
votes
1answer
756 views

Should I trust htop or top when it comes to RES memory?

I am writing a program to test some memory usage metrics on our systems and I want to hit a target memory consumption. You execute my program via meminflate.exe -G 103.1 if you want to take up 103.1 ...
0
votes
1answer
4k views

What would cause a high `%wa` value when there is nothing performing heavy io?

I have a 92.3%wa value on top right now under linux and when I run iotop -a, I see nothing causing heavy io. What might be the cause of the large %wa value and how can I go about diagnosing this? The ...
1
vote
1answer
260 views

how to check how much memory processes take?

As we know in Linux machines, we have RAM memory and swap memory. My first question is: What is the reason that the swap memory is increasing – because high level of using the RAM memory or ...