[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Is there memory leak in oracle?

Posted on 2004-03-23
6
Medium Priority
?
1,514 Views
Last Modified: 2013-12-11
there's several times oracle in one of my servers ate all the memory.
first I thought it's maybe my code cause the problem, but then i shut down everything, wrote a simple asp page with only open adodb.connection object connect to a oracle 8i database, run a simple select sql script, then close the connection, if i let the page run enough times, oracle.exe will eat all my memory.
the memory leak occure either with microsoft odbc driver for oracle or oracle obdc driver, so it's not driver problem.
0
Comment
Question by:dragonemp
6 Comments
 
LVL 8

Expert Comment

by:baonguyen1
ID: 10663894
Hi dragonemp, What is your OS version ? What is the machine type ?

0
 
LVL 48

Expert Comment

by:schwertner
ID: 10665254
Oracle can not ate the whole memory.
The main component of oracle placed in the memory is the SGA.
You can see the size of the SGA so:

SQL> show sga;

Total System Global Area  386998364 bytes
Fixed Size                   454748 bytes
Variable Size             360710144 bytes
Database Buffers           25165824 bytes
Redo Buffers                 667648 bytes
SQL>

Look at this parameter. You can change the size if it is too high.
0
 

Author Comment

by:dragonemp
ID: 10669190
My OS is win2k server with sp4 on a pentium 4 2.4G.

Total System Global Area  185710620 bytes
Fixed Size                    75804 bytes
Variable Size              66846720 bytes
Database Buffers          118710272 bytes
Redo Buffers                  77824 bytes
and before I stop the service and restart again, oracle.exe took 300M RAM + 200M VM.......
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 5

Accepted Solution

by:
Pontis earned 500 total points
ID: 10696934
Hi!

  The total size of the memory that Oracle will use is the size of SGA (which is "fixed" by setting the appropriate parameters in init.ora) plus PGA - the dynamic memory allocated to each connection (thread in your case on win2k).

  The PGA in 8i does have some problems and I've seen the cases when it could grow for sepearet users to the order of hundreds of megabytes and not freeing it up.
 
  What I suggest you do is try to see if your connections get _disconnected_ when you run your test asp program. It could be that IIS or whatever else you use as web server keeps a pool of connections. This coupled with PGA problem can lead to memory exhaustion.

 Yu might want to look at your sort_area_size parameter and also you can increase the size of memory available to oracle by setting /3G parameter in your boot.ini.

Pontis
0
 
LVL 48

Expert Comment

by:schwertner
ID: 10701719
Look v$process view (as sys) or via Oracle Enterprise Manager. If there are to much processes, try to figure out why. You can limit the number of the processes using init<sid>.ora processes parameter.
0
 

Author Comment

by:dragonemp
ID: 10706161
accepted Pontis's comment. thanks.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question