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
119 views

Where is my RAM going? Top command included [duplicate]

Possible Duplicate: How to understand the memory usage and load average in linux server Tasks: 39 total, 1 running, 37 sleeping, 0 stopped, 1 zombie Cpu(s): 0.0%us, 0.0%sy, ...
5
votes
1answer
377 views

Identify which process is responsible for heavy disk i/o under FreeBSD

I wonder how I can monitor which process takes out all my IO bandwith. The only command i know is gstat but it shows cumulative info. Is there any tools i can use to inspect the running processes for ...
1
vote
1answer
301 views

TIME column in TOP command for mysql

When I run top on my database server I get that mysqld has been running for 4:00.51 and it continues to go up. I assume this means that one process with mysql has been running this long from other ...
2
votes
1answer
95 views

How to interpret increasing SHR reported by top?

The man page for top defines SHR as: t: SHR -- Shared Mem size (kb) The amount of shared memory used by a task. It simply reflects memory that could be potentially shared with other ...
5
votes
2answers
1k views

How to get top command output to show rake arguments?

In the past, all of our servers have automatically shown command arguments passed to rake when we view them in top. For example: But on this particular server, we get this instead (picture is top ...
0
votes
1answer
74 views

Linux released memory

If My process allocates some big memory and then deallocates, would top or gnome-system-monitor show that my memory usage of that process decreased ? or kernel will still reserve that memory for that ...
2
votes
2answers
113 views

Linux: Finding the system processes which are at the top

I am running a multithreaded program on my 8-core processor. top command shows 8 processes are running and each one utilizes a core by 100%. The problem is that only 21% are marked as user cpu and my ...
0
votes
2answers
244 views

0% CPU in top for all processes, but load average > 1

On two different servers (with Ubuntu 12.04LTS AMD64) I have seen the following behaviour: op - 10:50:05 up 305 days, 21:17, 1 user, load average: 1.94, 2.52, 2.97 Tasks: 141 total, 2 running, ...
1
vote
2answers
318 views

Live monitoring on web server logs by tailing the webserver access log

I am looking for a way to find who causes high load on my nginx web server but I do have too many requests per minutes to figure it out which one is the real cause. I want a solution that would work ...
0
votes
0answers
166 views

Why is ipconfig in Linux top output?

top - 11:55:55 up 9 min, 5 users, load average: 1.30, 1.55, 1.00 Tasks: 229 total, 2 running, 227 sleeping, 0 stopped, 0 zombie Cpu(s): 12.6%us, 41.0%sy, 0.1%ni, 31.0%id, 12.9%wa, 0.0%hi, ...
-1
votes
3answers
117 views

How to solve memory issues in Linux

How to get details of a process that is taking RAM. From top command i have found that Mysql is taking too much ram how can i know why Mysql is taking too much ram far from usual behavior? Is there ...
3
votes
1answer
439 views

How do you measure the memory footprint of a set of forked processes?

Say I've got a process using 200MB of memory, and it fork()s: python -c "import os; data='x'*200000000; os.fork(); raw_input()" Programs like 'top' will show each process using 200MB, with very ...
0
votes
1answer
80 views

how can I tell if there is a cpu trashing on my linux machine

I want to write a script that will kill my processes when my machine is doing "too much" swapping of process memory from disk to memory. What is the best way to determine that? I saw top has %wa and ...
2
votes
2answers
327 views

Monitor CPU usage over period of time on Ubuntu

Is there some way to monitor my CPU usage over a period of time, e.g. get a graph that shows CPU% vs. date/time? I occasionally see high load using htop, but I'd like to see what's happening ...
0
votes
1answer
362 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 ...
3
votes
1answer
1k views

top process state column under FreeBSD

When running top interactively, I can see various words in the state column : nanslp, biord, select, uwait, lockf, pause, kqread, piperd, sbwait ... Some like nanslp or kqread are self ...
2
votes
2answers
1k views

How to show high usage user's username with the top command, if the username is too long?

I'm having problem identifying high usage users on a shared Linux machine. I use the "top" command and it does show which commands are using the most CPU. But the usernames on this server all start ...
1
vote
1answer
125 views

ps -o pcpu on Debian Squeeze is giving meaningless numbers

I'm trying to get the CPU percentage for processes on a busy server out of ps, but it's giving me nonsensical numbers. Here's a truncated example: $ ps -eo pcpu,pid | sort -n %CPU PID ... 36.5 ...
1
vote
4answers
196 views

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

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 ...
4
votes
2answers
264 views

How to read `top`. Process list says processes have swap but overview says no swap is being used

I am using top to monitor my server. The swap row reads Swap: 1044220k total, 0k used, 1044220k free, 148544k cached I have hit O p to sort by swap. PID USER PR NI VIRT RES ...
6
votes
1answer
2k views

Why does top report a different cpu usage than CloudWatch?

top shows an average CPU usage during peak times of about 20% while CloudWatch monitoring shows an average CPU usage of 40%. What causes this discrepancy?
1
vote
1answer
320 views

Linux top not tallying with java used memory

We have a java application where towards the last part of the codes we wrote these lines Runtime runtime = Runtime.getRuntime(); long memory = runtime.totalMemory() - runtime.freeMemory(); ...
5
votes
2answers
588 views

Load Average above 20 for single core vps on debian

OS: Debian 6.0 RAM:3072 M, CPU:single core. top: top - 08:56:43 up 21 days, 12:37, 1 user, load average: 28.38, 22.48, 15.95 Tasks: 8 total, 1 running, 7 sleeping, 0 stopped, 0 zombie ...
1
vote
1answer
362 views

free -m is showing total of 309 Mb for a system with 4GB RAM

OS:Xen Cloud Platform 1.1 (XCP) modified centos, and xen server 5.0 running on intel i5 free -m total used free shared buffers cached Mem: 309 ...
-3
votes
2answers
917 views

Load Average too high.Top not showing much?How to find the process?

Debian 6.0 running on VPS with single core and 3 Gb RAM. top - 09:24:19 up 17 days, 13:05, 2 users, load average: 14.79, 16.19, 11.10 Tasks: 14 total, 1 running, 13 sleeping, 0 stopped, 0 ...
1
vote
1answer
112 views

How to determine httpd memory usage

If I have this output from top for httpd, how do I determine its total memory usage? 16924 apache 20 0 203m 7108 2852 S 0.0 0.2 0:03.48 httpd ...
0
votes
1answer
483 views

load-causing processes disappearing from “top” ps -o pcpu shows bogus numbers

I administer a large number of servers, and I have this problem only with Ubuntu 10.04 LTS: I run a server under normal load (say load average 3.0 on an 8-core server). The "top" command shows ...
1
vote
3answers
1k views

No apparent reason for high load average

We have several web servers running on Amazon (ec2) c1.xlarge, over Amazon AMI. The servers are duplicates of each other, running the exact same hardware and software. Each server spec is: 7 GB of ...
0
votes
1answer
989 views

How to get Network Data Received and Data Sent Information on Mac OS X?

I want to store the network data received and data sent information on a variable or in a file. Using the below command I can grep it and print the line on screen. But I'm not able to store the info ...
1
vote
2answers
399 views

No clue for high load average on top

We have several machines on Amazon (ec2) of the type c1.xlarge with 16 cpus, running the Amazon AMI. Details on the machine: 7 GB of memory 20 EC2 Compute Units (8 virtual cores with 2.5 EC2 Compute ...
3
votes
2answers
2k views

Why does ec2 monitoring show 100% cpu and top only 20%?

I am running an python script on an ec2 instance that inserts rows in an database on another instance. In ec2's monitoring I saw a 100% cpu utilization, whereas top only shows 20% for the python ...
0
votes
2answers
808 views

load average in top and procs in vmstat

As far as I know, the load average in top is the numbers of precess(threads) in running or uninterrupted sleep status, So it should be equal to (procs-r +1 )+ procs-b in vmstat, but in practice, this ...
1
vote
2answers
310 views

Solaris: what's a kernel trap?

I'm trying to understand whether the high trap count reported by top on Solaris 10 Kernel: 1659 ctxsw, 1069 trap, 4433 intr, 3837 syscall, 5 fork Memory: 8192M phys mem, 299M free mem, 4103M total ...
2
votes
3answers
2k views

Diagnosing high CPU waiting

I have a monitoring server that is running icinga/collectd/graphite with about 50 hosts. I have noticed high load/slugging performance on the box. If you take a look at top, you'll see: Cpu(s): ...
1
vote
2answers
544 views

Top being high but not much processors are running on high cpu usage?

I have a machine running a very small java listener and no body is using this machine but load is like staying between 0.9 to 0.6 for nearly sometime? IS it any indication here? What could be causing ...
1
vote
2answers
4k 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
1answer
127 views

VPS Node and top -c

When using and viewing top -c with openvz does the CPU usage and everything include usage for everyone else on the system or just you? I've been watching my VPS node for awhile now and I've seen ...
0
votes
2answers
1k views

how to monitor select processes on centos 5.x host?

I would like to monitor a select group of processes, vmware vm's, running on my centos 6 host. "top" gives me most of what I want in that I can use -p to specify only those processes and -c to get ...
0
votes
1answer
404 views

Enable foreign users processes listing

how can I enable under Debian 6 to list the processes of a foreign user? I have the user nagios but this user can only list his own processes. Br
4
votes
1answer
2k views

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 ...
14
votes
1answer
11k 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
1answer
287 views

High Steal Time utilization on Apache Linux Server

I have a CentOS "development / testing" server that runs extremely slowly. It's running Apache and Mysql using PHP. Top reports that 98% of the CPU utilization is frequently spent on "st" - Steal ...
3
votes
2answers
3k views

How to sort top result on virtual memory on Redhat Linux?

There is an interactive key "M" to sort by memory, which seems to be sorting on resident memory. Is there a way to sort on virtual memory? I happen to be working on Redhat Linux, but the question is ...
5
votes
1answer
318 views

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 ...
0
votes
1answer
442 views

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 ...
-1
votes
3answers
187 views

server not responding

The server is not responding and the top output shows the following: mysql is consuming more than 500% of CPU Will the server restart solve ths issue? Will I face the same problem after restart? # ...
0
votes
1answer
129 views

why pressing M in linux's top command will have many processes that does not exist?

i pressed M in top command try to get a memory sort for the processes, 5892 myuser 15 0 88428 86M 12520 S 0.0 4.2 0:01 0 java 5893 myuser 15 0 88428 86M 12520 S 0.0 4.2 ...
0
votes
1answer
684 views

memory difference on top and htop

I got a new VPS as my database server. I installed only mysql and started. After some time(even after shutting down mysql service), I see only %3-4 of the memory used in htop but according to top I ...
0
votes
2answers
1k views

Get unix 'top' command output from Expect script

All, EDIT I want to execute a unix statement in Expect script and get an output without having to include the interact statement.The unix statement outputs rsize value for a process. I haven't ...
2
votes
1answer
363 views

Is there a way to run top as a daemon to gather historical process data?

I am aware that I can write a cron job that will run top in batch mode and write the output to a file but I am looking for something more elegant than that. Also I am aware of sysstat (sar) but I am ...