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
5
votes
1 answer

Sum of memory of few processes in top is greater than 100%

I'm trying to calculate the amount of memory used by AMP in an LAMP stack machine. top -bn1 | grep -E '(mysql|httpd|php)' | awk '{mem += $(NF-2)} END {print mem}' But the sum generated using the above command is greater than 100%, but I was…
Prakash
  • 203
  • 3
  • 8
5
votes
1 answer

MongoDB virtual memory usage

I'm testing MongoDB for archives data. We have a collection with 160M rows. MongoDB instance takes 76.2 Gb virtual memory on a 12 Gb physical memory box ;-) The swap in null. I read that virtual memory = physical + swap. What's wrong in my case ? It…
hotips
  • 533
  • 4
  • 8
  • 19
5
votes
1 answer

Mysterious swap usage on EC2

We're in the middle of a project to move our infrastructure from a co-lo situation into Amazon EC2 and we've noticed some weird memory characteristics of the processes in our setup. Without going into too much detail about the specifics of our…
rusty
  • 163
  • 6
5
votes
2 answers

top command occupied high cpu usage

My system is SUSE 10 and I observe that top occupies 57% CPU usage when I use it. I don't have too many processes: ps -eLf | wc -l 106 Here are top's stats: cat /proc/2913/stat 2913 (top) R 2879 2913 2879 34819 2913 8396800 411 0 0 0 60648 199580…
DaVid
  • 91
  • 2
  • 3
5
votes
2 answers

How do get apache display url request in Top and PS?

Is there a way to get apache to display the url that it is handling in top and ps? This would help us nail down performance issues much more faster. Thanks.
user76952
  • 51
  • 1
  • 2
5
votes
4 answers

Memory Usage in LINUX

I have a debian system. It has 8GB memory. When I do top it shows 7.9 GB memory used and rest free. I add up the memory usage of all the programs running from top and they hardly sum up to around 50 MB. So, where is rest of the memory being used?…
Incredible
  • 151
  • 1
  • 1
  • 5
5
votes
2 answers

How can I tell which page is creating a high-CPU-load httpd process?

I have a LAMP server (CentOS-based MediaTemple (DV) Extreme with 2GB RAM) running a customized Wordpress+bbPress combination . At about 30k pageviews per day the server is starting to groan. It stumbled earlier today for about 5 minutes when there…
5
votes
3 answers

Why does 'top' indicate low memory usage, whilst 'free' indicates high memory usage?

Why does 'top' indicate low memory usage, whilst 'free' indicates high memory usage? Mem: 262144k total, 225708k used, 36436k free, 47948k buffers Swap: 262136k total, 40k used, 262096k free, 110704k cached PID USER PR…
Sai
  • 65
  • 1
  • 2
  • 4
5
votes
2 answers

100% CPU usage reported, but no processes using the CPU

I am running Debian 10 (kernel 4.19.0-18-amd64) on bare metal and I have recently noticed strange CPU usage. Screenshot of htop, sorted by CPU% Screenshot of top, sorted by CPU% As you can see, 100% CPU usage is reported over all of the cores but…
tomf
  • 51
  • 1
  • 2
4
votes
2 answers

is CPU actually occupied during iowait (%wa in top) on Linux / EC2?

On an 8-way Amazon EC2 instance (running Linux 2.6.21) with 8 EBS volumes and a lot of disk traffic, we see high %wa in top (30-40%), and high load average (8-9). My understanding is that processes waiting on I/O from the EBS volumes are counted in…
user27045
4
votes
1 answer

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 …
nbari
  • 558
  • 1
  • 9
  • 28
4
votes
1 answer

TOP cpu %ulitization exceeds number of procs X 100%

I have a VM with 2 virtual CPUs. When I run two multi-threaded java proceses the total CPU utilization in top exceeds 200%. In fact its closer to 800%. alt text http://ftp.lib.byu.edu/top.jpg I thought that %CPU was the percentage utilization of…
racyclist
  • 624
  • 5
  • 9
4
votes
2 answers

how do you interpret output of top?

Some things in top's output are pretty straightforward, like memory and swap usage. But load average numbers are a bit of a mystery: what do these three numbers mean? Also, what exactly is a zombie process and how is it different from a sleeper? top…
deadprogrammer
  • 1,691
  • 7
  • 24
  • 25
4
votes
1 answer

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?
MyFault
  • 913
  • 3
  • 15
  • 36
4
votes
1 answer

Measuring load - %CPU in top is different than %us

When I run TOP on a remote server, I see a very small system utilization (3.8%us). However, for the actual process I am seeing 29.6% of the CPU. Since this server has 8 CPU cores, is the %CPU the utilization of only 1 CPU, while the us up top is…
Menelaos
  • 155
  • 1
  • 1
  • 10