I've got a shell script called "oramem.sh" (online at
www.evdbt.com/tools.htm) that parses and summarizes the output from
"pmap -x" for you.  I'm sure that Oracle records some breakdown information
about how much memory is used for different PGA and UGA areas, but I don't
think that anyone will argue with "pmap -x".  "oramem.sh" was written for
and tested upon Solaris 8;  can't vouch for it on other platforms...

Hope this helps...

----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Friday, October 04, 2002 4:38 AM


> I know this has been discussed before and I have monitored the discussions
> but I am not sure that I have seen a clear summary
> and set of conclusions.
>
> I am trying to identify how much memory is used by the instance and all
> connections.
>
> I can show sga to give a total memory of the base instance
> /usr/sbin/pmap -x pid gives a rather verbose output and I struggle to work
> out exactly which of the lines is the one I am most interested in
> I have also tried ps -eo vsz,pid |grep 5225 where 5225 is the pid of an
> oracle connection and that returns a value that includes the SGA and also
> bigger than the return from the sql script below
>
> I run the following script to show me how much pga memory has been used
for
> each process
> select name,sid,value/1024/1024 "Curr Mb"
> from v$sesstat a, v$database c
> where statistic# = 20 # shows current session PGA
>
> However I am convinced that that query is not accurate as it seems to
return
> some very small values on systems that are quite busy. Also statistic# =21
> which is the maximum for each process does not vary much from current
which
> disturbs me a little as we have a lot of constant connections
>
> Has anybody got a easier/more accurate method of determing memory usage
>
> Thanks in anticipation
>
> John
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Tim Gorman
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to