Sponsored Content
Full Discussion: Process Resource Usage
Top Forums UNIX for Dummies Questions & Answers Process Resource Usage Post 302242080 by Murph on Wednesday 1st of October 2008 06:34:39 AM
Old 10-01-2008
Process Resource Usage

Hi There,

I'm trying to find a way to gather resource usage information (CPU, Memory & Virtual Memory) for a single process in a scripted way.

I've looked at vmstat & top but I can't figure out how to use them to get the information for a single process.

can any one help with this?

Thanks
 

10 More Discussions You Might Find Interesting

1. AIX

CPU usage of a process

I'm trying to monitor the CPU usage of a process and output that value to a file or variable. I know topas or nmon can tell me this in interactive mode but what I need is topas-looking output that allows me to write to a file after a discrete interval. Unlike nmon data collection to a file on top... (5 Replies)
Discussion started by: robot23
5 Replies

2. UNIX for Dummies Questions & Answers

newbie: way to learn more about server's resource usage

I have a dedicated server running centos. It is "slightly managed" meaning I get a little help if I desperately need it; otherwise on my own. Many of the programs on this server I've had to write myself (less than optimal code for sure). Others are commercial but some are renowned resource... (2 Replies)
Discussion started by: blakekr
2 Replies

3. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

4. UNIX for Advanced & Expert Users

Throttling Process Resource Consumption

Is there a way of throttling a process resources, something akin to limits but for processes not users? ie I want processX to be restricted in the amount of memory it can consume. For process cpu I guess I can simply nice the process, but total memory consumption is my primary concern. (3 Replies)
Discussion started by: humbletech99
3 Replies

5. Red Hat

cannot set user id: Resource temporarily unavailable (not open file/open process related)

First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting. First, this is what's running: This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies

6. UNIX for Dummies Questions & Answers

Mail/ftp/web servers, on VIRTUAL!! dedicated server. Also resource usage. Centos 5.

Hi. First of all, would 4 or 5 websites, 1 ftp server (when downloading by someone or a few persons or one, concretize) and one mail server (not many emails, just to sound official and have a nice, spam-free email for myself). Websites with not that many, but some, later more visitors, quite... (0 Replies)
Discussion started by: newn
0 Replies

7. Programming

HELP!!: CPU resource allocation between kernel modules and user mode process

Hi,all: I run my program which consists of one kernel module and one user mode process on a dual core server. The problem here is the kernel module consumes 100% of one core while the user mode process only consumes 10% of the other core, is there any solution that I can assign some computing... (1 Reply)
Discussion started by: neyshule
1 Replies

8. Infrastructure Monitoring

Recording / Monitoring Shell Script Resource Usage.

I need to record min and max resources for RAM, & CPU for each command's execution in a shell script. Maybe going in details I would also be interested to capture plots with resource usage i.e.start to end of individual command with respect to time in a shell script. Please share ideas. (0 Replies)
Discussion started by: vaibhavvsk
0 Replies

9. Solaris

Process to add mount point in Sun Cluster existing HAplus resource

Hi Well I would like to know step by step process of adding a mountpoint in HAPLUS resource in SUN cluster as I go the below command to add a mount point but not the step by step process of adding a mount point in existing HA Plus resource. clrs set -p FileSystemMountPoints+=<new_MP>... (3 Replies)
Discussion started by: amity
3 Replies

10. UNIX for Advanced & Expert Users

Identify cause of high resource usage

hello all, on linux servers sometimes any of these resources (cpu,memory,disk) get a spike when you are not in front of the server. the duration of these spikes might be 5 mins or even whole weekend. my question is there a good way of capturing the events that caused these issues ( cpu or... (5 Replies)
Discussion started by: coolatt
5 Replies
id(1)							      General Commands Manual							     id(1)

NAME
id - print user and group IDs and names SYNOPSIS
[user] [user] [user] DESCRIPTION
The command writes a message to standard output, giving the user and group IDs and names for the process. If the effective and real IDs are different, both are printed. If the process has supplementary group affiliations (see groups(1)), the supplementary group affiliations are also written. If the user operand is specified and the process has appropriate privileges, the user and group IDs of the selected user are written. In this case, effective IDs are assumed to be identical to real IDs. If the selected user has more than one allowable group membership listed in the group database, then the group membership information is written. Options The following options modify the behavior described above. Display only the group ID. The default is the effective group ID; to modify, use the option. If the process has supplementary group affiliations that are different from the effective group ID (or the real ID if the option is used), display each such affiliation on the same line. The default is decimal format; to modify, use the option. Output all different group IDs (effective, real, and supplementary) only, using the format "%u ". If there is more than one distinct group affiliation, output each such affiliation, using the format " %u", before the <newline> is output. With A or display the ID name instead of the ID number. With or display the real ID instead of the effective ID. Display only the user ID. The default is the effective user ID; to modify, use the option. The default is decimal format; to modify, use the option. Displays process resource group ID for the process along with the user and group IDs and names. The option ignores user argument. See HP Process Resource Manager in RETURN VALUE
The error codes returned by are : Success. User not found or invalid options or invalid combination of options. The option is given when PRM is not supported or configured. EXAMPLES
To display the current user and group data: produces: To display the group ID number for the current process: produces: To display the group name for the current process: produces: To display the user and group data for another user: produces: To display the PRM group ID for the current process: produces: DEPENDENCIES
HP Process Resource Manager The option requires that the optional HP Process Resource Manager (PRM) software be installed and configured. See prmconfig(1) for a description of how to configure HP PRM, and prmconf(4) for the definition of the process resource group. AUTHOR
was developed by HP and AT&T. SEE ALSO
groups(1), logname(1), getuid(2). HP Process Resource Manager: prmconfig(1), prmconf(4) in STANDARDS CONFORMANCE
id(1)
All times are GMT -4. The time now is 05:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy