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

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, load average: 0.00, 0.01, 0.05 Tasks: 139 total,…
cdosborn
  • 172
  • 8
3
votes
3 answers

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: top The Top command displays data differently. For…
3
votes
1 answer

Running 'top' with 'Irix mode' off in batch mode

Can anyone tell me how I can tweak the following top command so that it always runs in Solaris mode in a batch mode operation? top -d 3 -n 2 -b -p I need 'top' to output a process' CPU usage that had already been divided by the total number…
His
  • 249
  • 1
  • 4
  • 9
3
votes
3 answers

finding kernel space programs

how can we determine %sy process that is Consuming CPU. In the following case there is no netfilter and traffic is under 1 mbps.but still system process are taking too much cpu and cpu usage for niced process are also high.How can we determine the…
Kevin Parker
  • 757
  • 1
  • 13
  • 32
3
votes
1 answer

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 processes. I can see this growing for one process but I am…
MilesHampson
  • 131
  • 4
3
votes
2 answers

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 throughout the day. The more lightweight, the better :)
user967722
  • 257
  • 1
  • 4
  • 5
3
votes
2 answers

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 usage, i wrote a .sh that uses "top -b -n 1" (that…
3
votes
3 answers

top reports swap at 100%, free memory available

On RedHat 5 servers, we see top reporting swap has 0k free. vmstat shows the same amount of swap used, but no paging. We kill our only app, and top still reports 100% of swap used. If we reboot, swap goes to 0k used. Any comments: am I…
cvsdave
  • 141
  • 5
3
votes
2 answers

Ubuntu server using too much memory

my server is at a very high memory usage constantly - to the point that it won't let me log in via ssh some times. I have to reboot the server before I can log in and when it's restarted the memory drops to ~90% usage and slowly works it's way up to…
Jacksonkr
  • 465
  • 1
  • 7
  • 16
3
votes
1 answer

How do I tell real CPU load in a xen environment?

I have a Debian machine with 4 CPU cores running Xen with two virtual machines, and I'm having trouble determining overall real CPU usage. Each machine has two VCPUs assigned to it with no cap on CPU use: Domain-0 0 …
3
votes
1 answer

top, w, ps showing wrong CPU times

I've spotted this trait recently on some of my Ubuntu servers (10.04.2) on Amazon EC2 (not noticed this on any physical boxes), and can't quite comprehend how it's getting these figures. They can't be real, because I'm sure computers haven't been…
dannosaur
  • 983
  • 5
  • 15
3
votes
1 answer

How can I find the source of my high load issues on Ubuntu server?

We have an Ubuntu 10.4 VPS serving a Rails site which often shows pretty high load, but doesn't have high CPU or memory numbers. Reading a lot of other questions here on Server Fault suggests to me that this is an I/O issue (i.e. there are processes…
pjmorse
  • 1,550
  • 1
  • 17
  • 34
3
votes
2 answers

How to log processes shown in top by user to a text file?

I need to log all processes (including the amount of CPU usage used, the time it was running for, etc...) to a txt file; preferably one entry per line as it appears in top. The user appears to be running an abusive process via cron however I want to…
KJB
3
votes
2 answers

Where does top get its CPU usage data from?

I want to write some scripts that will measure the CPU use, but top's output, while pleasant for the user, isn't really feasible for processing in a script.
Richard
3
votes
4 answers

Monitoring linux processes

Is there an option for linux top command where i can filter processes by name? For example, I only want to monitor python processes (there are several of them), and I'd like to do something like top -option "python" or something like that.
mgs
  • 135
  • 1
  • 4