08-11-2010
Nope...You can the read the man page of ps to understand. Option 'a' is part of bsd syntax and doesnt really need a '-' before the option...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how can i do that in a script withough havin the script halt at the section where the top command is located. am writign a script that will send me the out put of unx commands if the load average of a machine goes beyond the recommended number.
top -n 20
i want to save this output to a file... (1 Reply)
Discussion started by: TRUEST
1 Replies
2. UNIX for Dummies Questions & Answers
hi,
i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies
3. AIX
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... (4 Replies)
Discussion started by: bce_groups
4 Replies
4. AIX
Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold
I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies
5. UNIX for Dummies Questions & Answers
I'm using top to view processes. But, I do not know how to scroll down the list to view what is not showed in the terminal window. Anyone know how to do this? (1 Reply)
Discussion started by: keenansnews
1 Replies
6. Shell Programming and Scripting
ps -eo pid,comm,%cpu lists all processes (in increasing PID number).
How to get only the top-10 most CPU intensive ones? I know about top: this is BASH exercise.
I tried redirecting above code to cut ps -eo pid,comm,%cpu | cut -f2but ps' output isn't TAB delimited. How can I otherwise use... (5 Replies)
Discussion started by: courteous
5 Replies
7. 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
8. 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
9. UNIX for Dummies Questions & Answers
Platform: Oracle Linux 6.4
To find the most memory consuming processes, I tried the following 2 methods
1. Method1
# ps aux | head -1 ; ps aux | sort -nk +4 | tail -7
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 95 0.0 0.0 0 0 ? ... (2 Replies)
Discussion started by: kraljic
2 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
LEARN ABOUT DEBIAN
wmforkplop
WMFORKPLOP(1) User Commands WMFORKPLOP(1)
NAME
wmforkplop - Monitors forking activity and displays top CPU consuming processes.
SYNOPSIS
wmforkplop [options]
DESCRIPTION
wmforkplop is a program that monitors the forking activity of the kernel and displays a list of the most CPU-consuming processes. Although
primarily aimed at Windowmaker, it will run on any window manager, either as a dockapp or as a standard X11 application.
Option list:
-h, --help
print this.
-v, --verbose
increase verbosity
-V, --version
print version
--fontpath path add a new directory to the font search directory list
default: --fontpath=/usr/share/fonts/truetype (and subdirectories)
--fontpath=/usr/share/fonts/ttf
(and subdirectories)
--fontpath=$HOME/.fonts
(and subdirectories)
--font fontname/size Set the 'small font' name/size in pixel (default: --smallfont=Vera/6 The font name are case-sensitive, and must corre-
spound to the name of a .ttf file which can be found in one of the fontpaths By default, wmforkplop tries to load the following
fonts:
* Vera/6, DejaVuSansMono/6, Andale_Mono/6, Verdana/6, Trebuchet_MS/7
-c n, --colormap=n
select colormap number n (0 <= n <= 5)
-g[=WxH+x+y], --geometry[=WxH+x+y]
start in window (i.e. undocked) mode with specified geometry (i.e -g 96x32 or -g 64x64+0+0)
--32, --48, --56
start in a reduced dockapp, for people whose dock is too small too contain 64x64 dockapps
--no-top
disable the wmtop feature, you will only see the fork animation.
--no-fork
disable the fork animation, you will only see the list of top processes.
--threshold=n
minimum CPU consumption (%) of a process listed in the top-list (default 3%)
-u n, --proc-update-delay=n
set the delay between two reads of /proc, the default is 150 (milliseconds). Setting a small value gives accurate results, but con-
sumes more CPU as reading /proc is quite expensive.
See /usr/share/doc/wmforkplop/README.gz for more details.
AUTHOR
This manual page was generated using help2man and edited by Varun Hiremath <varun@debian.org>, for the Debian project (but may be used by
others).
wmforkplop 0.9.3 January 2008 WMFORKPLOP(1)