05-06-2009
Command to find TOP 5 Memory consuming process
HI All,
Can anyone send me a command to find TOP 5 Memory consuming process.
It would be lelpful if I get output something like below
processname - pid - memory(in MB) - command
I tried few commands from the internet but the result only give the real memory usage or pagging, I want total memory usage of the process.
I also tried using topas and vmon but the result seems to be inaccurate.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all
i need in csh to extract only the Memory line from the out put of the top command how can it easily done (1 Reply)
Discussion started by: umen
1 Replies
2. AIX
How can i find the processes that is consuming most memory? I tried TOPAS and SVMON and this didn't gave me the desired result. (1 Reply)
Discussion started by: shabu
1 Replies
3. Shell Programming and Scripting
Hi all,
I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command.
Thanks in advance.
Thanks,
Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies
4. Shell Programming and Scripting
I m using following command to find top 10 cpu consuming processes.
However whenever i execute the command i get
following warning.
What can be done to avoid it?
# ps -auxf | sort -nr -k 3 | head -10
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root ... (6 Replies)
Discussion started by: pinga123
6 Replies
5. Shell Programming and Scripting
When I run 'top' command,I see the following
Memory: 32G real, 12G free, 96G swap free
Though it shows as 12G free,I am not able to account for processes that consume the rest 20G.
In my understanding some process should be consuming atleast 15-16 G but I am not able to find them.
Is... (1 Reply)
Discussion started by: prasperl
1 Replies
6. Shell Programming and Scripting
Hi All,
O/S: Linux 86x64 Red Hat
I have a sql script that queries top consuming processes of Linux using TOP commnd.
Now I need to automate this task and pass the top processes i.e., PID to the sql script through unix shell script.
Could anyone please let me know how to achieve this.
... (2 Replies)
Discussion started by: a1_win
2 Replies
7. Red Hat
I wanted to know how to find the memory taken by a process using top command. The output of the top command is as follows as an example:
Mem: 13333364k total, 13238904k used, 94460k free, 623640k buffers
Swap: 25165816k total, 112k used, 25165704k free, 4572904k cached
PID USER ... (6 Replies)
Discussion started by: RHCE
6 Replies
8. AIX
Hello
There are options / commands to check which process is consuming maximum memory
However is there any command/mechanism which will tell us which process was consuming maximum memory in specific time interval in the past?
I heard nmon report can help in this regard.
is there any... (5 Replies)
Discussion started by: Chetanz
5 Replies
9. Shell Programming and Scripting
Hi All,
how to kill 5 top memory used process in my hp-ux.
Thanks,
Kki (9 Replies)
Discussion started by: kki
9 Replies
10. UNIX for Beginners Questions & Answers
I am middle of writing health check scripts, can you pls share commands on how I can get cpu and Mem of top consuming process info at the moment?
Also can u suggest ideas on what all I can look for as a part do health check on red hat Linux server?
I searched on site before posting, but... (2 Replies)
Discussion started by: Varja
2 Replies
rtprio(1) General Commands Manual rtprio(1)
NAME
rtprio - execute process with real-time priority
SYNOPSIS
priority command [arguments]
priority
command [arguments]
DESCRIPTION
executes command with a real-time priority, or changes the real-time priority of currently executing process pid. Real-time priorities
range from zero (highest) to 127 (lowest). Real-time processes are not subject to priority degradation, and are all of greater (schedul-
ing) importance than non-real-time processes. See rtprio(2) for more details.
If is specified instead of a real-time priority, executes command with a timeshare (non-real-time) priority, or changes the currently exe-
cuting process pid from a possibly real-time priority to a timeshare priority. The former is useful to spawn a timeshare priority command
from a real-time priority shell.
If is not specified, command is not scheduled, or pid's real-time priority is not changed, if the user is not a member of a group having
access and is not the user with appropriate privileges. When changing the real-time priority of a currently executing process, the effec-
tive user ID of the calling process must be the user with appropriate privileges, or the real or effective user ID must match the real or
saved user ID of the process to be modified.
RETURN VALUE
returns exit status 0 if command is successfully scheduled or if pid's real-time priority is successfully changed, 1 if command is not exe-
cutable or pid does not exist, and 2 if command (pid) lacks real-time capability, or the invoker's effective user ID is not a user who has
appropriate privileges, or the real or effective user or the real or effective user ID does not match the real or saved user ID of the
process being changed.
EXAMPLES
Execute file at a real-time priority of 100:
Set the currently running process pid 24217 to a real-time priority of 40:
AUTHOR
was developed by HP.
SEE ALSO
setprivgrp(1M), getprivgrp(2), rtprio(2).
rtprio(1)