top is a Unix/Linux/BSD program to show what processing are running. It can show the top users of CPU or memory.

learn more… | top users | synonyms

0
votes
1answer
28 views

capture top command output in expect [on hold]

I have created my first expect script but am not able to capture the output of the top command. Can anyone point out my mistake? #!/usr/bin/expect set timeout 20 set top_cmd "top -u goswamia -b > ...
2
votes
1answer
30 views

How to understand the “SIZE” output of the command top on FreeBSD

I am working on a VPS with 512 of RAM, I installed mysql, run the command top and found that the value of SIZE for mysql is 638M: last pid: 2023; load averages: 0.17, 0.19, 0.21 ...
3
votes
2answers
136 views

Why is this server reporting high memory usage

It seems that given the memory percentage of the processes listed, my server should not be at 98% memory usage. Why is the cumulative memory usage so high? top - 14:34:50 up 14 days, 22:54, 3 users, ...
0
votes
1answer
32 views

linux + atop + chart alternative from atop

I use the atop in order to verify the performance top history and know by the values the status for each time my question is , what the alternative for atop that can view the values in chart? or ...
5
votes
3answers
13k views

TIME+ column in top command is inaccurate

I just ran the top command to observe the following process chown -r me:me allMyMusic And it's been running for about 5 minutes, however the TIME+ column in the top command has reported it as ...
0
votes
2answers
51 views

Shell Script to check CPU Utilisation

I am trying to write a shell script which will check free memory of the server. I am trying below code top -M -n1 | grep "Mem" | awk '{print 0 + $7}' | awk '{ print $1 / 1024 }' | awk '{if ($1 < ...
2
votes
2answers
40 views

Application Running as multiple processes

I have a java/tomcat application running on RedHat linux. Initially when I start the application, everything seems to be working perfectly fine. However, after some time, I guess 1-2 days, I witness ...
1
vote
1answer
30 views

Understanding top and tuning

I have allowed Postgres 30GB of RAM on our server. When running intensive tasks, I think it is swapping. As I understand it: VIRT - virtual memory (ie: swapped to disk) RES - complete memory usage ...
2
votes
1answer
38 views

What do angle brackets (“less than”) mean in busybox 'top' command process STAT column?

I am looking at Busybox top command: Mem: 39444K used, 4404K free, 0K shrd, 0K buff, 24704K cached CPU: 4% usr 7% sys 0% nic 87% idle 0% io 0% irq 0% sirq Load average: 0.02 0.12 0.10 ...
10
votes
3answers
37k views

Something eats all memory (I suspect memory leak on some app). How to detect what?

I have server which runs liquidsoap+icecast bundle and simple website (httpd+mysqld). Nothing special. Visitors around 2000+ per day, with around 50 being online simultaneously on average. Server has ...
1
vote
1answer
16 views

Linux top in RES what does the 't' suffix stand for

When monitoring my system with top, I noticed that under RES some values have a 't' suffix, but I can't see any indication of what this means. PID USER PR NI VIRT RES SHR S %CPU ...
2
votes
0answers
14 views

Memory usage in docker container - 600MB for OS only? [duplicate]

I am running docker swarm across two Debian 8 nodes, each with 1GB ram. I wanted to see how much memory was available to my application process (which will be a Solr server) so I did: docker-compose ...
3
votes
3answers
354 views

CentOS 7.1 - Reverting to Old Functionality of top and service

I recently installed a fresh CentOS 7.1 server. I'm noticing a few differences from CentOS 6.7, and I'm hoping there is a way to revert to an old view of certain things. For example: Question 1: ...
7
votes
3answers
3k views

How to exclude some users from Linux Top screen?

In top screen, by default it shows all users' processes. How to exclude some users(for example, root and nobody) from the top real-time screen?
1
vote
1answer
29 views

disk space usage by process in ubuntu 12.04

Is there any way to know how much disk space currently running process is using? I have checked ps and top command but could not find out. Background behind this question: I have a server which is ...
19
votes
2answers
20k views

How to interpret output from Linux 'top' command?

Following a discussion made HERE about how PHP-FPM consuming memory, I just found a problem in reading the memory in top command. Here is a screenshot of my top just after restarting PHP-FPM. ...
1
vote
2answers
538 views

Top showing 64% idle on first screen or batch run, while there is no idle time at all

I'm running a quite heavy number crunching thing on a few 4 core servers, all running Ubuntu Precise Pangolin LTS 64 bit, in the cloud (so I suppose in a virtualized environment). To monitor the cpu ...
2
votes
0answers
116 views

How does docker stats output relate to top output?

I've got a process running in a Docker container on Linux, with a 2GByte memory limit. (The container is started with docker run --memory=2g.) Here is what top says about it after it's been running ...
0
votes
0answers
19 views

Running and sleeping in top

I usually use top to get an idea of the server load before (and while) running a compute job. Recently my attention was drawn to the process state column. In particular I noticed that all Matlab ...
0
votes
1answer
22 views

Know which file is related to a process execution

In Unix, with top I have an output similar to this: 13916 root 18 0 903m 129m 9936 S 51.4 0.1 3:07.01 php How can I know which file is this php process executing? For example: 13916 root 18 0 903m ...
1
vote
1answer
185 views

htop 100% fake CPU load

Recently my VPS show 100% CPU usage of all cores in htop and observium, but there is no process that uses > 5% CPU. In fact, the statistics of my VPS host shows there is no activity at all. Is this a ...
0
votes
3answers
604 views

Is there a top like tool that shows processes and ports, live?

I'd like to be monitoring ports in "realtime" and the processes that use them. Is there any tool that can handle that? I imagine somethinkg like top, but with a column that lists all ports the process ...
0
votes
2answers
182 views

How can I identify the purpose of a process called “analog”?

I had an unusual amount of memory being used in the server and when I logged in as root and ran "top" I got this line: 13778 global 34 19 1726m 857m 336 D 1.3 85.6 1:49.89 analog ...
5
votes
2answers
281 views

top is only showing current user processes

Recently got a dedicated server running CentOS 6.7, we have ran updates and noticed that top is only showing processes for the current user. [myuser@server2 ~]$ top -b -n1 top - 20:19:20 up 1 day, ...
9
votes
8answers
8k views

High CPU load but top processes in top all around 0%

We have a server with unusual high load and cpu util, but we can't figure out why. When we run top all the procs seem to be very low cpu. http://cl.ly/2d1g0K3q261r0R0K3e35 Is there a better way to ...
1
vote
1answer
115 views

what percentage of iowait is considered to be high?

when iowait is considered to be high ? iostat -x avg-cpu: %user %nice %system %iowait %steal %idle 2,89 0,01 5,45 49,83 0,00 41,83 Device: rrqm/s wrqm/s ...
-2
votes
1answer
98 views

How to understand output of top command

How to understand output for top as Load Average is continuously increasing but can't understand which process is eating cpu because %cpu utilization for process is maximum 0.7 but load average is ...
0
votes
2answers
175 views

top command + how to verify iowait value for one hour

my target is to check iowait value that not higher than 50 from top command and if value is higher than 50 for more then one hour , then need to give alarm about this ( by script or other option ) ...
1
vote
0answers
495 views

ATOP: vmcom / vmlim -> SWP is red

in ATOP I'm getting a red alert like this: vmcom 76.3G | vmlim 49.8G This is a value that is attached to the "SWP" (so "SWAP" is meant?)-line. What does this mean and what can I do against it?
0
votes
3answers
184 views

What does top report in a Linux-VServer

So if im logged into a linux-vserver and run the command top. Is the fields 'load average' and cpu's for the virtual server or the host machine?
5
votes
5answers
32k views

Find out what high CPU usage apache process is actually doing?

Currently having a few issues with our server where, intermittently, we seem to get apache processes which just run and run, taking up 100% CPU. When running top, we see the following: PID USER ...
0
votes
0answers
210 views

digitalocean server cpu is 75% all the time

I have a nice server in digital ocean, it's the 1GB ram size. It has installed: php, mysql, nginx, supervisored, beanstalkd as I installed. But the problem is the I see that all the time the cpu is ...
1
vote
1answer
70 views

top batch to dump CPU usage for all CPUs

I am looking for a command that I can run in a batch mode and report back to a monitoring server. I'd like a CPU usage across all CPUs (the equivalent of running top in interactive mode and then ...
2
votes
1answer
104 views

Ubuntu server getting slow everyday at 9.00AM

This server runs Ubuntu 12.04.5 LTS and used as a web server (apache 2.2.22) and an ftp server (proftpd 1.3.4a). Nobody can access web pages when this happens for 5 minutes or so. (This is a virtual ...
0
votes
2answers
95 views

how to check if a process with heavy io usage is running properly

I am now managing a computer cluster for scientific computing. Some processes in the cluster need heavy io usage. Now I find such a process: Its state changes rapidly between DOWN and RUN and its ...
5
votes
2answers
1k views

Which Linux package contains the 'top' command?

Many of the common utilities in Linux either come packaged in util-linux from Linux Foundation or coreutils from GNU. The man page for top doesn't specify anything. I am using CentOS.
1
vote
2answers
50 views

Confirm a memory leak by tracing “free” and “cached” in top?

I'm trying to confirm that there is a memory leak on my Linux device while in idle state (there should be no continuous memory consumption). I'm not interested in identifying the process that is ...
199
votes
2answers
71k views

What exactly do the colors in htop status bars mean?

By default, htop shows colored status bars for processors, memory, and swap. From left to right, the bars are colored green, blue, yellow, and red depending on some thresholds. What does it mean when ...
16
votes
4answers
10k views

What does %st mean in top?

Here is an example from my top: Cpu(s): 6.0%us, 3.0%sy, 0.0%ni, 78.7%id, 0.0%wa, 0.0%hi, 0.3%si, 12.0%st I am trying to figure out the significance of the %st field. I read that it means ...
31
votes
3answers
24k views

Linux - How can I see what's waiting for disk IO

I have a server that has a really high load. Nothing is jumping out at me in terms of CPU usage, and it's not swapping. I think it's cause some processes are waiting for disk IO, and I want to see ...
1
vote
4answers
241 views

Is there any tool that I can use to monitor memory usage of each process on Linux easily? [closed]

This issue is not the same as the question on how to see the memory usage of a Linux process. Also, the top command doesn't give the exact memory used, but just what percentage one process uses, so ...
0
votes
0answers
190 views

Why top output different from sar output?

This is SLES11sp3 system. The command top shows the load average of 17+, as shown below: #top top - 11:59:14 up 19 days, 21:55, 40 users, load average: 17.09, 17.29, 19.22 Tasks: 514 total, 1 ...
3
votes
3answers
4k views

tail: inotify cannot be used, reverting to polling: Too many open files

tail: inotify cannot be used, reverting to polling: Too many open files I'm running apache and tomcat servers on Ubuntu (AWS ec2). Whenever I try to tail the catalina.out of tomcat I get too many ...
1
vote
1answer
147 views

how can I understand why apache is consuming so much cpu - ec2

I have an ec2 c3.medium instance running. It has recently started maxing out the cpu making the server unresponsive. Rebooting the instance doesn't really help for long, although it does make apache ...
1
vote
2answers
7k views

ps shows that migration/* processes consume a lot of CPU, but top keep silence about them

here is the result of ps command, shown only first 10 lines ps aufx | head USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 2 0.0 0.0 0 0 ? S ...
1
vote
2answers
2k views

top command - cpu from processes do not add up

I understand the various types of cpu usage reported by the top command (6.5%us, 17.2%sy, 0.0%ni, etc...), but why does the total %CPU for each process not add up to any of the Cpu(s) values? For ...
1
vote
1answer
346 views

System not being able to handle soft interrupts but having idle time?

I have a constant 5% and more CPU time spent in handling soft interrupts. Doe to that, the ksoftirqd is running almost constantly, but is using a very small amount of CPU (less than 1%). However, ...
1
vote
1answer
85 views

Influence of kernel code execution to Load average in top?

I'm trying to tests the amount of CPU that iptables use for NAT. Perhaps it will be more accurate to say "the amount of CPU that the netfilter kernel module" uses. The approach i took was to try and ...
0
votes
3answers
2k views

free shows more memory used than top process total

UPDATE: This was being caused due to a known issue with nss-softkn. See this article: https://www.splyt.com/blog/2014-05-16-optimizing-aws-nss-softoken When I run free -m from my centos 6.5 box I ...
2
votes
1answer
47 views

How to spec VM requirements based on historical data of transient processes on Linux?

I've been given a task to break apart the services on one of our main VMs (Amazon EC2) and appropriate additional VMs to suit the services needs. The type of services that I am dealing with are ...