Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support CPU and memory utilization of a process, by process name Post 302685735 by gull04 on Monday 13th of August 2012 09:28:16 AM
Old 08-13-2012
Hi,

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.

Code:
#!/usr/bin/ksh

Today=`date +%y%m%d`
LOGFILE=/xxxxxxxx/log/ora-mem-use.log.$Today

for i in `ps -fuoracle|grep smon|cut -d "_" -f 3`
do
        date >> $LOGFILE
        echo "SID: $i" >> $LOGFILE
        export ORACLE_SID=${i}; /export/home/oracle/omemuse -SB >> $LOGFILE
        echo >> $LOGFILE
done

Regards

Dave

Last edited by gull04; 08-13-2012 at 10:29 AM.. Reason: Company Detail Removed.
 

10 More Discussions You Might Find Interesting

1. AIX

cpu utilization of a process

Hi, How can i find out the average cpu utilization of a particular long-running process in AIX? is there some command for this Thanks (2 Replies)
Discussion started by: iam
2 Replies

2. Shell Programming and Scripting

Memory and CPU utilization process

Hi, I need to check which process in linux is taking high memory and which process is taking high cpu usage. Regards, Bash (4 Replies)
Discussion started by: learnbash
4 Replies

3. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

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

4. UNIX for Dummies Questions & Answers

Getting CPU utilization and memory for a process

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)
Discussion started by: radiatejava
5 Replies

5. AIX

High CPU utilization by a pro*C process

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)
Discussion started by: mugunthanvh
6 Replies

6. UNIX for Dummies Questions & Answers

Get CPU,Memory utilization by process id

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)
Discussion started by: suresh_g
1 Replies

7. HP-UX

Get CPU,Memory utilization by process id

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)
Discussion started by: suresh_g
5 Replies

8. AIX

Checking CPU utilization by db2sysc process

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)
Discussion started by: niteshtheone
0 Replies

9. Shell Programming and Scripting

Checking CPU utilization by db2sysc process

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)
Discussion started by: niteshtheone
6 Replies

10. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

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
GLOBUS-GATEKEEPER(8)						  Globus Toolkit					      GLOBUS-GATEKEEPER(8)

NAME
globus-gatekeeper - Authorize and execute a grid service on behalf of a user SYNOPSIS
globus-gatekeeper [-help] [-conf PARAMETER_FILE] [-test] [-d | -debug] {-inetd | -f} [-p PORT | -port PORT] [-home PATH] [-l LOGFILE | -logfile LOGFILE] [-lf LOG_FACILITY] [-acctfile ACCTFILE] [-e LIBEXECDIR] [-launch_method {fork_and_exit | fork_and_wait | dont_fork}] [-grid_services SERVICEDIR] [-globusid GLOBUSID] [-gridmap GRIDMAP] [-x509_cert_dir TRUSTED_CERT_DIR] [-x509_cert_file TRUSTED_CERT_FILE] [-x509_user_cert CERT_PATH] [-x509_user_key KEY_PATH] [-x509_user_proxy PROXY_PATH] [-k] [-globuskmap KMAP] [-pidfile PIDFILE] DESCRIPTION
The globus-gatekeeper program is a meta-server similar to inetd or xinetd that starts other services after authenticating a TCP connection using GSSAPI and mapping the client's credential to a local account. The most common use for the globus-gatekeeper program is to start instances of the globus-job-manager(8) service. A single globus-gatekeeper deployment can handle multiple different service configurations by having entries in the /etc/grid-services directory. Typically, users interact with the globus-gatekeeper program via client applications such as globusrun(1), globus-job-submit, or tools such as CoG jglobus or Condor-G. The full set of command-line options to globus-gatekeeper consists of: -help Display a help message to standard error and exit -conf PARAMETER_FILE Load configuration parameters from PARAMETER_FILE. The parameters in that file are treated as additional command-line options. -test Parse the configuration file and print out the POSIX user id of the globus-gatekeeper process, service home directory, service execution directory, and X.509 subject name and then exits. -d, -debug Run the globus-gatekeeper process in the foreground. -inetd Flag to indicate that the globus-gatekeeper process was started via inetd or a similar super-server. If this flag is set and the globus-gatekeeper was not started via inetd, a warning will be printed in the gatekeeper log. -f Flag to indicate that the globus-gatekeeper process should run in the foreground. This flag has no effect when the globus-gatekeeper is started via inetd. -p PORT, -port PORT Listen for connections on the TCP/IP port PORT. This option has no effect if the globus-gatekeeper is started via inetd or a similar service. If not specified and the gatekeeper is running as root, the default of 2119 is used. Otherwise, the gatekeeper defaults to an ephemeral port. -home PATH Sets the gatekeeper deployment directory to PATH. This is used to interpret relative paths for accounting files, libexecdir, certificate paths, and also to set the GLOBUS_LOCATION environment variable in the service environment. If not specified, the gatekeeper looks for service executables in /usr/sbin, configuration in /etc, and writes logs and accounting files to /var/log. -l LOGFILE, -logfile LOGFILE Write log entries to LOGFILE. If LOGFILE is equal to logoff or LOGOFF, then logging will be disabled, both to file and to syslog. -lf LOG_FACILITY Open syslog using the LOG_FACILITY. If not specified, LOG_DAEMON will be used as the default when using syslog. -acctfile ACCTFILE Set the path to write accounting records to ACCTFILE. If not set, records will be written to the log file. -e LIBEXECDIR Look for service executables in LIBEXECDIR. If not specified, the sbin subdirectory of the parameter to -home is used, or /usr/sbin if that is not set. -launch_method fork_and_exit|fork_and_wait|dont_fork Determine how to launch services. The method may be either fork_and_exit (the service runs completely independently of the gatekeeper, which exits after creating the new service process), fork_and_wait (the service is run in a separate process from the gatekeeper but the gatekeeper does not exit until the service terminates), or dont_fork, where the gatekeeper process becomes the service process via the exec() system call. -grid_services SERVICEDIR Look for service descriptions in SERVICEDIR. -globusid GLOBUSID Sets the GLOBUSID environment variable to GLOBUSID. This variable is used to construct the gatekeeper contact string if it can not be parsed from the service credential. -gridmap GRIDMAP Use the file at GRIDMAP to map GSSAPI names to POSIX user names. -x509_cert_dir TRUSTED_CERT_DIR Use the directory TRUSTED_CERT_DIR to locate trusted CA X.509 certificates. The gatekeeper sets the environment variable X509_CERT_DIR to this value. -x509_user_cert CERT_PATH Read the service X.509 certificate from CERT_PATH. The gatekeeper sets the X509_USER_CERT environment variable to this value. -x509_user_key KEY_PATH Read the private key for the service from KEY_PATH. The gatekeeper sets the X509_USER_KEY environment variable to this value. -x509_user_proxy PROXY_PATH Read the X.509 proxy certificate from PROXY_PATH. The gatekeeper sets the X509_USER_PROXY environment variable to this value. -k Use the globus-k5 command to acquire Kerberos 5 credentials before starting the service. -globuskmap KMAP Use KMAP as the path to the Grid credential to kerberos initialization mapping file. -pidfile PIDFILE Write the process id of the globus-gatekeeper to the file named by PIDFILE. ENVIRONMENT
If the following variables affect the execution of globus-gatekeeper: X509_CERT_DIR Directory containing X.509 trust anchors and signing policy files. X509_USER_PROXY Path to file containing an X.509 proxy. X509_USER_CERT Path to file containing an X.509 user certificate. X509_USER_KEY Path to file containing an X.509 user key. GLOBUS_LOCATION Default path to gatekeeper service files. FILES
/etc/grid-services/SERVICENAME Service configuration for SERVICENAME. /etc/grid-security/grid-mapfile Default file mapping Grid identities to POSIX identities. /etc/globuskmap Default file mapping Grid identities to Kerberos 5 principals. /etc/globus-nologin File to disable the globus-gatekeeper program. /var/log/globus-gatekeeper.log Default gatekeeper log. SEE ALSO
globus-k5(8), globusrun(1), globus-job-manager(8) University of Chicago 01/06/2012 GLOBUS-GATEKEEPER(8)
All times are GMT -4. The time now is 06:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy