Without knowing what OS you are using it's not easy to help, to get a feel for what is happening on your server/system thare are many scritps available.
However starting with the standard Unix/Linux tools is probably your best bet in the short term.
Tools like nmon will probably not suit your needs, more likely commands like "ptree", "ps", "top"(topas on AIX) and many others will be more suitable for this task.
As an example on a system using lots of oracle instances this will show you the actual memory being used.
Regards
Dave
Last edited by gull04; 08-13-2012 at 10:29 AM..
Reason: Company Detail Removed.
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)
I am trying to get cpu util and memory occupied for a process. I use these (I am showing output also):
using top
----------
$ top p 25272 d 5
top - 01:52:17 up 2 days, 21:28, 2 users, load average: 0.02, 0.05, 0.06
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie... (5 Replies)
Hi ,
we upgarded our AIX from 5.3 to 6.1 and upgraded our xlc compiler from ver 6.0 to 9.0 .
After this upgrade one of our pro*C program is utilizing around 20% of the CPU. Before upgarde its using only 0.2 %.
when i try to debug using the truss command i got the below error.
$... (6 Replies)
Hi ,
We need to get the CPU% and Memory utilization of process by process id.
Is there any way to do get them ?
I tried few commands like top -p <PID> ,
but am getting error "Quitting top: pset <PID> doesn't exist"
also i tried with ps -eo option but am getting error "ps: illegal option --... (1 Reply)
Hi ,
We need to get the CPU% and Memory utilization of process by process id.
Is there any way to do get them ?
I tried few commands like top -p <PID> ,
but am getting error "Quitting top: pset <PID> doesn't exist"
also i tried with ps -eo option but am getting error "ps: illegal option --... (5 Replies)
Hi,
I am trying to write a script which will fire alert mail to dba ( db2dba) when there process will
utilize CPU more than 90%. But I am unable to do so.
I am using following command to calucate CPU utilization be db2sysc process :
ps -eo pcpu,pid,comm | grep -i db2sysc | awk '{ SUM+=$1;... (0 Replies)
Hi,
I am trying to write a script which will fire alert mail to dba ( db2dba) when there process will
utilize CPU more than 90%. But I am unable to do so.
I am using following command to calucate CPU utilization be db2sysc process :
ps -eo pcpu,pid,comm | grep -i db2sysc | awk '{ SUM+=$1;... (6 Replies)
Hi Experts,
Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing.
Why memory utilization on solaris always looks high?
I have statement about memory on solaris, is this true:
Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies
LEARN ABOUT FREEBSD
clock_getcpuclockid
CLOCK_GETCPUCLOCKID(3) BSD Library Functions Manual CLOCK_GETCPUCLOCKID(3)NAME
clock_getcpuclockid -- access a process CPU-time clock
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <time.h>
int
clock_getcpuclockid(pid_t pid, clockid_t *clock_id);
DESCRIPTION
The clock_getcpuclockid() returns the clock ID of the CPU-time clock of the process specified by pid. If the process described by pid exists
and the calling process has permission, the clock ID of this clock will be returned in clock_id.
If pid is zero, the clock_getcpuclockid() function returns the clock ID of the CPU-time clock of the process making the call, in clock_id.
RETURN VALUES
Upon successful completion, clock_getcpuclockid() returns zero; otherwise, an error number is returned to indicate the error.
ERRORS
The clock_getcpuclockid() function will fail if:
[EPERM] The requesting process does not have permission to access the CPU-time clock for the process.
[ESRCH] No process can be found corresponding to the process specified by pid.
SEE ALSO clock_gettime(2)STANDARDS
The clock_getcpuclockid() function conform to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
The clock_getcpuclockid() function first appeared in FreeBSD 10.0.
AUTHORS
David Xu <davidxu@FreeBSD.org>
BSD August 21, 2012 BSD