Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: tracking oracle memory usage

RE: tracking oracle memory usage

From: John Kanagaraj <>
Date: Thu, 08 May 2003 14:37:20 -0800
Message-ID: <>


Since you are on Solaris, you can use the 'pmap' utility to determine the heap component of identified processes and monitor them for large changes.. Ignore the other values (except maybe the stack). 'ps' whill show up the RSS which will include the SGA sizes as well, so that isn't reliable. Example below:
John Kanagaraj (back now!)
Oracle Applications DBA
DBSoft Inc
(W): 408-970-7002

I don't know what the future holds for me, but I do know who holds my future!

$ pmap 7511


00010000 26520K read/exec /u01/c4prdb/8.1.7/bin/oracle

01A04000 264K read/write/exec /u01/c4prdb/8.1.7/bin/oracle

01A46000 3368K read/write/exec [ heap ]

80000000 1789608K read/write/exec/shared [ ism shmid=0x1c00 ]

FEA60000 16K read/exec /usr/platform/sun4u/lib/

FEA70000 8K read/write/exec [ anon ]

FEA80000 16K read/exec /usr/lib/

FEA94000 8K read/write/exec /usr/lib/

FEAA0000 120K read/exec /usr/lib/

FEACE000 8K read/write/exec /usr/lib/

-----Original Message-----
Sent: Thursday, May 08, 2003 2:38 PM
To: Multiple recipients of list ORACLE-L

Hello All -  

I am in need of some advice on tracking memory usage for oracle connected processes. We thought we may have a memory leak in some of the processes attached to oracle on one of our servers... turns out that it was probobly another process on the server that ate up all the memory.. I would like to have a script or process ready next time to make it easier to track memory utilization for all processes attached to the database. I am using on Solaris 2.6.  

I know there are memory stats in v$sgastat, what about PGA memory stats? Are there v$view(s) or sys tables that contain memory information on the session level? I am currently using unix pmap to get heap size for each session and storing the PID, heap size, and timestamp in a table to see if heap is growing for any sessions... is there an easier way to identify possible memory leak(s) if oracle does not detect it?  


Jim Neugebauer
Oracle DBA
Ameritrade Holding Corp

Do you Yahoo!?
The New <*> Yahoo! Search - Faster. Easier. Bingo.

Please see the official ORACLE-L FAQ:
Author: John Kanagaraj

Fat City Network Services    -- 858-538-5051
San Diego, California        -- Mailing list and web hosting services
To REMOVE yourself from this mailing list, send an E-Mail message
to: (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).
Received on Thu May 08 2003 - 17:37:20 CDT

Original text of this message