Questions tagged [top]

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

302 questions
3
votes
3 answers

Identify processes running inside Docker, in Process List

I realize that processes that run inside Docker containers appear on the hosts' process list: # ps aux | grep mariadb root 12486 0.0 0.0 112812 976 pts/0 S+ 14:47 0:00 grep --color=auto mariadb Is there a way to identify whether a…
Nuno
  • 553
  • 2
  • 8
  • 26
2
votes
1 answer

docker stats memory lower than top's rss

I created a container, in which I've created ~10 processes. I want to analyze how much memory they're consuming. To achieve that, I ran top inside the container, and docker stats outside. In top, I see 10 processes, each taking 50MB of resident…
speller
  • 131
  • 5
2
votes
1 answer

Identify the top processes when the overall system has large CPU utilization in Ubuntu server

I have a Ubuntu server running in EC2. Occasionally, I get a large CPU usage 99+% utilization as measured in EC2 monitoring dashboard, even though most times it is less than 10%. Since traffic to my site is spiky, and many times happens at the…
JackDaniels
  • 121
  • 2
2
votes
1 answer

Process claims to use a lot of memory, but 'free' indicates that the memory is still free

I've seen the opposite of this, but this is puzzling. In short, I have a process where %MEM claims to use 74% of memory when using 'ps' and 'top'. However, 'free' shows that I'm only using 32% of the available memory. Here is this output of…
2
votes
1 answer

how to find Linux processes started at a certain time

I am trying to debug Linux vnc session that is not responding. I think I clicked the KDE konsole icon and that is when the vnc session became frozen. I can see the windows and menu in KDE but nothing responds. I am wondering if i could know the…
user2979872
  • 123
  • 3
2
votes
3 answers

CentOS7 kswapd0 process eating 99% CPU

When I run top on centos7, I found kswapd0 eating 99% CPU, as shown in the screenshot above. Below is some other information top - 11:38:04 up 32 days, 16:14, 1 user, load average: 0.06, 0.13, 0.19 Tasks: 142 total, 2 running, 140 sleeping, …
Mario7
  • 33
  • 1
  • 1
  • 5
2
votes
1 answer

Solaris 10 top more free memory than real

When I type TOP command in my server I get result: CPU states: 79.3% idle, 9.2% user, 11.6% kernel, 0.0% iowait, 0.0% swap Memory: 16G real, 19G free, 283G swap in use, 115G swap free I don't have free command as well as /etc/meminfo file. My…
Alivederci
  • 21
  • 2
2
votes
1 answer

Shift+E to change units in top does not work

I want to toggle the sizes top shows. top -M does work, but when I try to toggle the sizes after top has opened using shift+E (as some suggested) it does not work. Why is that and what is the alternative? I will appriciate any help!
Liron Cohen
  • 123
  • 3
2
votes
2 answers

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 the following as the top output. PID USER PR …
davyjones
  • 21
  • 2
2
votes
1 answer

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 1/172 15422 PID PPID USER STAT VSZ %MEM…
jjmontes
  • 3,387
  • 2
  • 19
  • 27
2
votes
0 answers

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

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 run solr bash In other words, instead of the solr…
Anentropic
  • 949
  • 2
  • 11
  • 18
2
votes
5 answers

%CPU for a process

Looking at the output of top on our server, one of my colleagues told me that the fact that some processes got less than 100 "%CPU" was because I was running too many processes. He added that based on his experience if I run less than 6 processes,…
Tim
  • 1,487
  • 6
  • 28
  • 43
2
votes
1 answer

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 private server) This is the output of top command…
Asela
  • 191
  • 1
  • 1
  • 11
2
votes
1 answer

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 mostly php cronjobs, that coincide with our web…
Mike
  • 21
  • 1
2
votes
1 answer

ps_mem.py vs top - memory usage?

Every now and again my apache server is crashing, getting an error saying the MaxClients has been reached. In my research I've gained the impression that I may be running out of memory (just checked and MaxClients is set to 1500, though number of…
komodosp
  • 121
  • 6