[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Is there memory leak in oracle?

Posted on 2004-03-23
6
Medium Priority
?
1,518 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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

591 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