Sponsored Content
Operating Systems HP-UX Get CPU,Memory utilization by process id Post 302486762 by suresh_g on Monday 10th of January 2011 08:52:25 AM
Old 01-10-2011
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 -- o"

when i executed uname -a command i got following as output
"HP-UX servername B.11.23 U ia64 0318662421 unlimited-user license"

we are using hp-ux..Does the above commands doesnt work here?
What are the commands in hp-ux to get the CPU and memory utilization of process

Thanks,
Suresh
 

10 More Discussions You Might Find Interesting

1. AIX

Utilization for memory and cpu

Hi all I need command to give me the utilization for memory and cpu,and how can I know if the utilization ok or no? for example in hp unix #top it is give me utilize for cpu and memory and also I can know if utilize ok or no. thanks (2 Replies)
Discussion started by: magasem
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

CPU/Memory utilization

hi guys I just want to know how to get the cpu/memory utilization of a running script? Well i know that I can use the sar command but it shows the whole system's statistics. Is it possible to get the stats of a single scirpt or a single running service? (6 Replies)
Discussion started by: khestoi
6 Replies

5. UNIX for Dummies Questions & Answers

CPU Utilization and Memory Usage

Can any one suggest me, how to get the last week's (Last n weeks) average CPU utilization and Memory usage? (2 Replies)
Discussion started by: siba.s.nayak
2 Replies

6. 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

7. 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

8. Emergency UNIX and Linux Support

CPU and memory utilization of a process, by process name

Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking. G (4 Replies)
Discussion started by: ggayathri
4 Replies

9. 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

10. Red Hat

CPU Utilization and Memory Utilization of Services and Applications

Hi, i am new to linux/RHEL 6.0 and i have two questions. 1) How to get the CPU utilization and Memory Utilization of all Services running currently? 2) How to get the CPU utilization and Memory Utilization of all Applications running currently? Please help me to find the script. ... (2 Replies)
Discussion started by: nossam
2 Replies
top(1)							      General Commands Manual							    top(1)

NAME
top - display and update information about the top processes on the system SYNOPSIS
time] count] number] filename] pset_id] DESCRIPTION
displays the top processes on the system and periodically updates the information. Raw CPU percentage is used to rank the processes. Options recognizes the following command-line options: Set the delay between screen updates to time seconds. The default delay between updates is 5 seconds. Show only count displays, then exit. A display is considered to be one update of the screen. This option is used to select the number of displays to be shown before the program exits. This option runs the program at the same priority as if it is executed via a command so that it will execute faster (see nice(1)). This can be very useful in discovering any system problem when the system is very sluggish. This option is accessible only to users who have appropriate privileges. User ID (uid) numbers are displayed instead of usernames. This improves execution speed by eliminating the additional time required to map uid numbers to user names. Hides the individual CPU state information for systems having multiple processors. Only the average CPU status will be displayed. Show only number processes per screen. Note that, if number is greater than the maximum number of processes that can be displayed per screen, this option is ignored. But when used with option, there is no limit on the maximum number of processes that can be displayed. Output is appended to filename. When is used, defaults to 1 for and 16 for Show load averages and process state break down for system and processor set pset_id. Show only the processes running on the processor set pset_id. This option is supported only if the kernel supports processor sets functionality. Adds column PSET before column CPU for individual CPU information. Adds columns PSET before column CPU for each process informa- tion. This option is supported only if the kernel supports processor sets functionality. Show individual CPU information. By default, does not display any individual CPU information. The user can toggle between individual process information and individual CPU information by using the screen-control key. When used with the option, the option overrides the option. Screen-Control Commands When displaying multiple-screen data, recognizes the following keyboard screen-control commands: Display next screen if the current screen is not the last screen. Display previous screen if the current screen is not the first screen. Display the first (top) screen. Display individual CPU information in place of individual process information and vice versa. Program Termination To exit the program and resume normal user activities, type at any time. Display Description Three general classes of information are displayed by The first few lines at the top of the display show general information about the state of the system, including: o System name and current time. o Load averages in the last one, five, and fifteen minutes of all the active processors in the system. o Number of existing processes and the number of processes in each state (sleeping, waiting, running, starting, zombie, and stopped). o Percentage of time spent in each of the processor states (user, nice, system, idle, interrupt and swapper) per active processor on the system. o Average value for each of the active processor states (only on multi-processor systems). Reports virtual and real memory used by user processes (with the amount of memory considered "active" in parentheses) and the amount of free memory. Information about individual processes on the system. When process data cannot fit on a single screen, divides the data into two or more screens. To view multiple-screen data, use the and commands described previously. Note that the system- and memory-data displays are present in each screen of multiple- screen process data. Process data is displayed in a format similar to that used by Processor number on which the process is executing (only on multi-processor systems). Terminal interface used by the process. Process ID number. ID of the processor set to which the processor belongs. This is shown only when option is used. Name of the owner of the process. When the option is specified, the user ID (uid) is displayed instead of Current priority of the process. Nice value ranging from -20 to +20. Total virtual size of the process in kilobytes. This includes virtual sizes of text, data, stack, mmap regions, shared memory regions and IO mapped regions. This may also include virtual memory regions shared with other processes. Resident size of the process in kilobytes. It includes the sizes of all private regions in the process. The resident size information is, at best, an approximate value. Current state of the process. The various states are or Number of system and CPU seconds the process has consumed. Weighted CPU (central processing unit) percentage. Raw CPU percentage. This field is used to sort the top processes. Name of the command the process is currently running. EXAMPLES
can be executed with or without command-line options. To display five screens of data at two-second intervals then automatically exit, use: To display information about pset 2, use: To display individual CPU information in place of individual process information, use: and press the key. AUTHOR
was developed by HP and William LeFebvre of Rice University. top(1)
All times are GMT -4. The time now is 03:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy