Hi,
Can anyone help me out in writing the shell scrip which monitors a process which is running and gives me the output of the memory being used by the process, I have the requirement of monitorig the memory usage of the process when it is running.
Please help me out (3 Replies)
in unix when i use top
i get an output like this:
load averages: 0.64, 0.57, 0.53 14:04:42
347 processes: 1 running, 1 waiting, 169 sleeping, 172 idle, 4 stopped
CPU states: 16.4% user, 2.8% nice, 7.6%... (2 Replies)
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)
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)
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)
Hi Export,
i execute 'top' command to show the free memory in Solaris host, but the read is much lower than the RSS value shown in prstat command. Which one can reflect the real status and it is possible the difference caused by any patch of OS?
Top command (only 883 memory is free)... (3 Replies)
Hi All,
how to kill 5 top memory used process in my hp-ux.
Thanks,
Kki (9 Replies)
Discussion started by: kki
9 Replies
LEARN ABOUT V7
ps
PS(1) General Commands Manual PS(1)NAME
ps - process status
SYNOPSIS
ps [ aklx ] [ namelist ]
DESCRIPTION
Ps prints certain indicia about active processes. The a option asks for information about all processes with terminals (ordinarily only
one's own processes are displayed); x asks even about processes with no terminal; l asks for a long listing. The short listing contains
the process ID, tty letter, the cumulative execution time of the process and an approximation to the command line.
The long listing is columnar and contains
F Flags associated with the process. 01: in core; 02: system process; 04: locked in core (e.g. for physical I/O); 10: being swapped;
20: being traced by another process.
S The state of the process. 0: nonexistent; S: sleeping; W: waiting; R: running; I: intermediate; Z: terminated; T: stopped.
UID The user ID of the process owner.
PID The process ID of the process; as in certain cults it is possible to kill a process if you know its true name.
PPID The process ID of the parent process.
CPU Processor utilization for scheduling.
PRI The priority of the process; high numbers mean low priority.
NICE Used in priority computation.
ADDR The core address of the process if resident, otherwise the disk address.
SZ The size in blocks of the core image of the process.
WCHAN The event for which the process is waiting or sleeping; if blank, the process is running.
TTY The controlling tty for the process.
TIME The cumulative execution time for the process.
The command and its arguments.
A process that has exited and has a parent, but has not yet been waited for by the parent is marked <defunct>. Ps makes an educated guess
as to the file name and arguments given when the process was created by examining core memory or the swap area. The method is inherently
somewhat unreliable and in any event a process is entitled to destroy this information, so the names cannot be counted on too much.
If the k option is specified, the file /usr/sys/core is used in place of /dev/mem. This is used for postmortem system debugging. If a
second argument is given, it is taken to be the file containing the system's namelist.
FILES
/unix system namelist
/dev/mem core memory
/usr/sys/core alternate core file
/dev searched to find swap device and tty names
SEE ALSO kill(1)BUGS
Things can change while ps is running; the picture it gives is only a close approximation to reality.
Some data printed for defunct processes is irrelevant
PDP11 PS(1)