Home » RDBMS Server » Server Administration » Calculating average memory used by oracle connections
Calculating average memory used by oracle connections [message #59269] Fri, 07 November 2003 07:35 Go to next message
Celia
Messages: 8
Registered: April 2003
Junior Member
Hi is there a standard average figure used for estimating the amount of memory used by each oracle user connection?
Does an INACTIVE user connection also use and amount of memory?
Many Thanks
Re: Calculating average memory used by oracle connections [message #59281 is a reply to message #59269] Sat, 08 November 2003 05:38 Go to previous message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
It depends on the OS and whether you are using Dedicated or Shared servers.
In Dedicated config,each user session is associated with a single Oracle Server process and hence its the size allocated to the Server process.
In MTS(ie Shared), multiple user sessions can use the same Shared server and the same user session can be serverd by multiple Shared servers.

On Solaris for eg, at the OS level, you can use ps ,pmap etc to determine the process sizes. But make sure to subtract the SGA and TEXT size from the reported value, becos its the shared memory and thats included with every process size.

From within Oracle,you can determine how much memory each session is consuming using the following query:

select value, n.name|| '('||s.statistic#||')' , sid
from v$sesstat s , v$statname n
where s.statistic# = n.statistic#
and n.name like '%ga memory%'
order by value;

Yes,Inactive sessions too consume memory,although it could vary .

-Thiru
Previous Topic: Raid 1+0
Next Topic: Need Help
Goto Forum:
  


Current Time: Fri Sep 20 10:27:31 CDT 2024