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.
304
questions
2
votes
2
answers
171
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 ...
-2
votes
3
answers
144
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 ...
8
votes
1
answer
3k
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
1
answer
784
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 ...
3
votes
2
answers
7k
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 ...
4
votes
2
answers
27k
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): 0.6%...
2
votes
2
answers
4k
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 ...
2
votes
1
answer
260
views
EC2 instance CPU in thousands
I started a new instance (c1.medium) and top show some crazy cpu usage
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9561 ubuntu 20 0 84888 ...
2
votes
1
answer
273
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
1
answer
1k
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();
System....
2
votes
2
answers
4k
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 ...
1
vote
1
answer
745
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
2
answers
2k
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
1
answer
645
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 ...
1
vote
3
answers
3k
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 ...
6
votes
3
answers
9k
views
Memory Usage by Bytes Top 10
I need a way to see how many bytes to top ten processes are using not percentage.
I am using centos
0
votes
2
answers
3k
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 ...
0
votes
1
answer
3k
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
2
answers
1k
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 ...
1
vote
2
answers
1k
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
2
answers
809
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
1
answer
224
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
1
answer
451
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
1
vote
1
answer
719
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 Time....
5
votes
1
answer
745
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 ...
1
vote
4
answers
4k
views
Apache uses up a lot of CPU for small website
I have a CentOS 5.5 VPS server with 512MB RAM setup.
There is 1 website hosted on it through Apache/PHP/MySQL which is built in Magento, a popular ecommerce framework.
When I browse the website, it ...
-1
votes
3
answers
443
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
1
answer
196
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 6:...
0
votes
1
answer
3k
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
2
answers
3k
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
1
answer
826
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 ...
1
vote
1
answer
2k
views
How can I monitor php resources usage with top command?
There is a question that is similar to what I want to know here on server fault: How can I find exactly which PHP scripts are taking up all server resources? but I don't think any of the answers ...
1
vote
1
answer
1k
views
CPU usage is very large in top command of Linux
I run SUSE Linux Enterprise Server 11 SP1 in a virtual machine. The hypervisor is KVM. There is 4 virtual CPU cores for the VM.
Now there is a very strange thing. In theory the maximum CPU usage ...
2
votes
1
answer
141
views
Our web server grinds to a halt when making XMLRPC requests. Please analyse my `top` output to see what's wrong
This a shared web server for our office and normally runs just fine with a few devs working on it simultaneously.
However, I've recently started working with it using Wordpress and it's XMLRPC API ...
3
votes
3
answers
2k
views
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, ...
0
votes
2
answers
487
views
Load Average cpu linux server
i have a problem with the load average on server,
I'm using on server
When I check the processor - with "top" command
I see that :
top - 04:27:37 up 39 min, 1 user, load average: 0.78, 0.77, 0.77
...
2
votes
2
answers
8k
views
What is using all my RAM? Understanding the output of top
I've read a number of top memory use questions but I don't think they answer this.
Here's the most significant part of a top run:
top - 01:11:41 up 4 days, 1:06, 3 users, load average: 0.00, 0.03,...
7
votes
1
answer
5k
views
Why do I see many mongod processes running?
I am running a single MongoDB database. No sharding. When I run htop, I see a lot of instances of mongod. Is that normal? Does every connection create a separate mongod process? Should I be concerned?
...
4
votes
2
answers
5k
views
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 ...
3
votes
1
answer
11k
views
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 ...
0
votes
1
answer
139
views
Collect output of top command displayed with separate option
I would be grateful to you for some details about the top command output achieved using the hotkey "A". I suppose the it gives back the swap usage per PID: it is right, isn't it?
Could you please ...
1
vote
3
answers
3k
views
Apache processes all stuck in lockf state (via top)
I have an Apache server that's accessing source code over NFS (from a separate dedicated NFS file server). Periodically the Apache server stops accepting new requests (effectively bringing down the ...
2
votes
1
answer
1k
views
why is ubuntu lsb_release being called every 30 seconds?
I'm running ubuntu server, and I was staring at "top". lsb_release seems to pop up every 30 seconds - which in turn calls apt-cache. I don't really know where to start looking for the source of this ...
1
vote
1
answer
2k
views
400% CPU usage for MySQL? What? What should I do?
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19857 mysql 20 0 514m 47m 3404 S 386 9.7 4511:45 mysqld
15659 www-data 20 0 205m 11m 4856 S 7 2.3 0:00.67 ...
2
votes
1
answer
1k
views
Can top show more than 100% in %MEM? [closed]
Can the %MEM value for a process show more than 100% in top output?Is this ever possible?
4
votes
2
answers
1k
views
Linux top command. Memory usage
I am testing my web server with Jmeter. I launch 40 users test, then dump top command.
What i see, is 40 (+1 host) apache processes. Each process uses appr. 7mb of RES memory. But 7*40 is 280 mb of ...
3
votes
1
answer
899
views
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 ...
12
votes
1
answer
12k
views
Problems with cron script and TERM definition using top command
I have a problem executing a cron process to check current CPU use in my server.
My script start with:
top -c -n 1 -u www-data > /tmp/kill-cpu
I can execute without problem in console, but in ...
2
votes
2
answers
2k
views
More in depth TOP command?
I recently came across a screenshot that looks to be using the "top" command, but it is showing a lot more in-depth info in terms of CPU usage:
The program shows detail down to which plugin in ...
1
vote
1
answer
5k
views
top command indicates a different cpu usage than sar command
In my CentOS server, when I check the resources with sar command, user cpu usage is around %15 while in top command the sole 'java' process uses like %99 of cpu. sometimes it's even goes further than %...