prstat O/P

Thread Tools Search this Thread
Operating Systems Solaris prstat O/P
# 1  
Old 02-12-2009
prstat O/P

Good Evening everyone,

I am confused about prstat O/P as it shows memory values which are different from actual value.Below is the O/P of prstat command and swap commands.


48 root 2113M 1590M 1.2% 45:09.39 32%
31 daemon 54G 53G 41% 528:03.20 29%
19 remedy 3581M 3529M 2.7% 0:01.14 2.0%
67 oracle 71G 70G 54% 34:26.00 0.7%
48 i3 2013M 350M 0.3% 24:25.16 0.3%
12 integral 835M 596M 0.4% 0:30.50 0.1%
13 tuxenv03 184M 134M 0.1% 1:22.14 0.0%
2 candle 36M 21M 0.0% 0:00.06 0.0%
1 tuxenv02 5000K 2048K 0.0% 0:00.00 0.0%
8 tuxenv01 156M 31M 0.0% 0:00.24 0.0%
16 mqm 437M 83M 0.1% 1:08.40 0.0%
13 tuxenv04 166M 116M 0.1% 0:00.17 0.0%
2 ucps 3032K 1848K 0.0% 0:00.48 0.0%
1 tuxenv05 5000K 2048K 0.0% 0:00.00 0.0%

In the above O/P, my confusion is values in RED color.

bash-2.03$ prtconf |grep -i memory
Memory size: 12288 Megabytes
memory (driver not attached)

bash-2.03$ swap -s
total: 4971032k bytes allocated + 930912k reserved = 5901944k used, 9563880k available

bash-2.03$ swap -l
swapfile dev swaplo blocks free
/dev/vx/dsk/swapvol 237,7 16 4097312 4097312
/dev/vx/dsk/swapvol1 237,8 16 8388592 8388592

Please can any of you help me. Reallly it is confusing me. Total memory (Including Swap memory) is 9563880k + 12288M.

Immediate reponse would b appriciated....
# 2  
Old 02-12-2009
prstat is very likely to be confused by shared memory segments.

What report "pmap -x " for these processes ?
# 3  
Old 02-24-2009
Thanks for your reply Mr.jlliagre. Unfortunately i do not have root password on to my server as it is a LIVE box and i am L2 Application support.

I tried all my known ways to find out what exactly it is ??? and no way.

Please can you expand your description....Smilie
# 4  
Old 02-24-2009
He's basically saying that prstat is not accurate because of the way shared memory segments work. If you actually need to know the real memory usage then `pmap -x {PID}` will tell you. To do so you will need to either be root or, in this case, be logged in (or use 'su') as the account that owns the processes. So if the process is owned by the Oracle user then you'll need to log in as Oracle or su to Oracle with 'su - oracle`. You will need to know the password for the oracle user to do so.

If you cannot get access to root or the oracle user then you cannot use pmap to get the memory information.
# 5  
Old 02-24-2009
I am afraid about the word " Shared Memorysegments". What does it mean......

Please .........
# 6  
Old 02-24-2009
Originally Posted by vvpotugunta
I am afraid about the word " Shared Memorysegments". What does it mean......

Please .........
I don't know. You'll have to do some research.
# 7  
Old 02-24-2009
shared = used by more than one process
memory = you know it
segments = contiguous portions or memory

Several of your oracle processes are likely to use the very same segments which are accounted independently by the prstat command leading to the bogus statistics.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

prstat on Solaris 8

On Solaris 8, when I try to run prstat 30 5 as a background process, the command exits 1-2 seconds after it's initiated instead of the 30 seconds I specified. It runs fine in interactive mode. Is there a workaround to this I could use? (Upgrading the package is not an option) A link to... (1 Reply)
Discussion started by: Devyn
1 Replies

2. Shell Programming and Scripting

prstat with ksh

trying to have prstat into a file on a Solaris machine. Would like to have the prstat run from a cron every 30 min. print 300 lines+ date. Date is not printed, only the prstat, and ksh does not end, it stays running... #!/bin/ksh # ---------------------------------------------------- #... (4 Replies)
Discussion started by: pointer
4 Replies

3. Shell Programming and Scripting

prstat from ptree ...

Hi, I know how to figure out the list of PID from my application name : ptree `pgrep MyApp` | awk '{print $1}' But I dont know how to pipe it for prstat -p <pidlist> ptree `pgrep MyApp` | awk '{print $1}' | prstat -p ??? I would like to monitor every ptree PID from my application. ... (4 Replies)
Discussion started by: RickTrader
4 Replies

4. Shell Programming and Scripting

prstat output

hi all, have a ksh script where i am doing a prstat -m -u osuser 1 1 >> $FILE_NAME but for some reason it only writes 15 lines wheres when i run the same command manually from command prompt it prints out 60 lines. why is it not writing the full 60 lines to the file ?? ta. (1 Reply)
Discussion started by: cesarNZ
1 Replies

5. Solaris


hi all, was trying to figure out how busy my app was by looking at the performance of the app server. did a 'prstat -s rss' command to find the app servers using most memory. Found a command 'prstat -m' which is meant to show more details on each pid but the output of this command... (1 Reply)
Discussion started by: cesarNZ
1 Replies

6. Shell Programming and Scripting


hi all, am writing a ksh script on solaris 9 to get the number of threads taken by a process. am using the prstat -p command to do this. output i get is : :"/export/home/user" > prstat -p 25528 | cut -f2 -d/ NLWP 203 Total: 1 processes, 203 lwps, load averages: 2.58, 3.24, 3.62... (2 Replies)
Discussion started by: cesarNZ
2 Replies

7. Shell Programming and Scripting

prstat output in GB

Hi, Is there any way by which the unit of size and rss will be only GB while I am running the prstat command? (2 Replies)
Discussion started by: King Nothing
2 Replies

8. Solaris

prstat log

Hi All, Operating System and Version: SunOS,Solaris 10 sparc(64 bit) RDBMS Version: But the prstat logs of my system shows:- NPROC USERNAME SWAP RSS MEMORY TIME CPU 83 cemsbin 5204M 3604M 22% 53:46:00 6.7% 2 adm 244M 240M 1.5% 15:13:53 3.5% 77 oracle 17G 10G 65% 4:24:47... (0 Replies)
Discussion started by: dipashre
0 Replies

9. Shell Programming and Scripting

Script using prstat

Hi, I need a script which uses prstat command to check the performance . if a load averages crosses some threshold means I should receive the mail. this script should always run in back ground. Kindly help me on this. (1 Reply)
Discussion started by: jayaramanit
1 Replies

10. UNIX for Dummies Questions & Answers

Help with prstat

Hello, The last line of prstat shows load average. I am unable to figure out what actually it is. I have read the man pages and also googled, all for no use. Can somebody help me, as to what should be the avg. load of the system for best performance and how is this load of prstat calculated. (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies
Login or Register to Ask a Question

Featured Tech Videos