Sponsored Content
Operating Systems Solaris Find memory usage for a process Post 303001682 by yashreads on Wednesday 9th of August 2017 11:36:43 AM
Old 08-09-2017
Find memory usage for a process

I have multiple oracle databases on one server. All the database are running from the same user i.e. oraent.
The process for each database can be distinguished by the ps -ef command

Eg :
Code:
ps -ef | grep oraent

The Output :
Code:
  oraent  5361     1   0 20:58:05 ?           0:00 oracledb1 (LOCAL=NO)
  oraent 11465     1   0 18:41:00 ?           0:03 oracledb2 (LOCAL=NO)
  oraent 27709     1   0 12:25:49 ?           0:01 oracledb3 (LOCAL=NO)

I need to find the total memory usage for each database at a given time.

I tried prstat, but there was no column which could differentiate the process per database. Smilie Smilie

Hope i was able to convey my requirement.

Any help will be welcome.
Thanks in advance..

---------- Post updated at 09:06 PM ---------- Previous update was at 09:05 PM ----------

The Operating System is SOLARIS 11

Last edited by MadeInGermany; 08-09-2017 at 02:52 PM.. Reason: Added code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to restrict memory usage by a process

we are running red hat ES4 and i would like to know if there is anyway of restrcting the maximum amount of memory that a process can get? I have a single preocess that is taking >13GB. Thanks, Frank (4 Replies)
Discussion started by: frankkahle
4 Replies

2. Solaris

RAM Physical Memory usage by each Process.

Hi All, I am trying to find the physical memory usage by each process/users. Can you please let me know how to get the memory usage?. Thanks, bsraj. (12 Replies)
Discussion started by: bsrajirs
12 Replies

3. Shell Programming and Scripting

Memory usage of a process

hi all, i want to write a script that checks the memory usage of processes and send a mail with the name of the process witch is using more then 300mb RAM. dose anybody have a sample script or an idea how i can make it ? PROCCESSES="snmpd sendmail" for myVar in $PROCCESSES do ... (7 Replies)
Discussion started by: tafil
7 Replies

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

5. HP-UX

how could I get a process Memory Usage

I use pstat API to get Process Infomation I would like to get a process 1.process owner 2.how many physical memory and virtual memory and total memory used(KB) and usage(%) 3.a process excution file create time 4.a process excution file access time I do't know which attribute it i need ... (3 Replies)
Discussion started by: alert0919
3 Replies

6. UNIX for Advanced & Expert Users

How to find out memory & cpu usage of a process

Hi, By using time command we can determine the execution time of a process or command. bash-2.04$ time ls -l total 0 -rw-r--r-- 1 admin tac 0 Oct 6 04:46 file1 -rw-r--r-- 1 admin tac 0 Oct 6 04:46 file2 real 0m0.002s user 0m0.000s sys 0m0.001s... (5 Replies)
Discussion started by: learn more
5 Replies

7. UNIX for Advanced & Expert Users

collecting memory usage by a process

Hi Guys, I work on a AIX environment and I'm trying to write a script where I can collect all the memory used by a process. Basically I'm executing the command 'ps -fu userid' to get all the process ids and then executing the 'ps v PID' to get all the memory allocated by PPID. My question is... (2 Replies)
Discussion started by: arizah
2 Replies

8. HP-UX

Virtual Memory Usage a Process

Hi all, Is there any command which shows the virtual memory usage of a particular process in HP-UX machine. I have tried with ps, top but could not get what I want. Kindly provide me a solution. Thanks in Advance ARD (4 Replies)
Discussion started by: ard
4 Replies

9. Solaris

Process memory usage

hi all gurus: I want to find out Solaris process memory usage, but got a bit confused, see if any one can provide me some guidance. i tend to use prstat -a to get total memory consumption by user (I know prstat likely have a bug that simply sum up the memory, regardless if the memory being... (5 Replies)
Discussion started by: oakville
5 Replies

10. UNIX for Beginners Questions & Answers

How can I check actual memory usage each Process?

I can't check actual memory usage in the Redhat 5.5... The used memory is 14214 Mb of Total 15919 by Free -m command. I sum the RSS value on PS aux command result and the value is 5428.66Mb. Yes It's quite different actual usage memory and RSS value. So I added Shared memory value... (5 Replies)
Discussion started by: tom8254
5 Replies
MAKEBEAROFF(6)							   Games Manual 						    MAKEBEAROFF(6)

NAME
makebearoff - generate a GNU Backgammon bearoff database SYNOPSIS
makebearoff [-HCcgnvh] -f filename [-t PxC] [-o P] [-s cache-size] [-O filename] DESCRIPTION
makebearoff generates GNU Backgammon bearoff databases, which are used to improve play in the endgame. It can generate either two-sided (exact) databases that tell precisely the chance of winning or one-sided (approximate) databases that provide a variety of probabilities looking at each side independently. Bearoff databases can get quite large and can take a significant amount of time to generate for large numbers of chequers and/or points. OPTIONS
-f filename, --outfile filename Write the bearoff database to filename. This option must be given. -t PxC, --two-sided PxC Generate a two-sided bearoff database for P points and C chequers for each player. Be warned that the size of the database grows rapidly with larger numbers of points and chequers. -o P, --one-sided P Generate a one-sided bearoff database for P points. One-sided bearoff databases are always generated for up to fifteen chequers. -s N, --xhash-size N Use a memory cache of size N while building the database. If the cache is smaller than the database size, database generation will be slower due to disk writes. -O filename, --old-bearoff filename Reuse an already generated bearoff database. Any needed data already in this database will just be copied without regenerating it. -H, --no-header Do not write the normal bearoff database header. -C, --no-cubeful Do not calculate cubeful equities for two-sided databases. -c, --no-compress Do not compress one-sided databases. -g, --no-gammons Do not include gammon distributions in one-sided databases. -n, --normal-dist Rather than storing exact probabilities, approximate probabilities in a one-sided database with a normal distribution. -v, --version Show version information and exit. -h, --help Display usage and exit. EXAMPLES
To generate a two-sided database for up to eight chequers on six points: makebearoff -t 6x8 -f gnubg_ts.bd Note that this database is 72MB in size. To generate a one-sided database for up to fifteen chequers on ten points: makebearoff -o 10 -f gnubg_os.bd Note that this database is 118MB in size. SEE ALSO
gnubg(6), bearoffdump(6) AUTHORS
Joseph Heled, Oystein Johansen, Jorn Thyssen, and Gary Wong, with the assistance of many others <bug-gnubg@gnu.org>. This manual page was written by Russ Allbery <rra@debian.org>, for the Debian GNU/Linux system (but may be used by others). It may be redistributed and/or modified under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation (the same license as GNU Backgammon). 2006-01-15 MAKEBEAROFF(6)
All times are GMT -4. The time now is 06:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy