Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / April 2006

Tip: Looking for answers? Try searching our database.

Memory shooting up when using Oracle JDBC drivers

Thread view: 
zunilp@gmail.com - 04 Apr 2006 13:44 GMT
Hi,
I have  a JDBC program connecting to Oracle 9i Database using
connection pool. What we observed is, when we continously send queries
and Insert request, the memory is increasing continously and stabilises
after some 100 run.
The scenario is like this.
1. We prepare the query
2. execute it
3. Cache the prepared query
4. Close resultset

This is same for insert and read.

But for 10 connections in the pool nad cache size of query 50, the
memory stabiliases around 110MB.

We tested the same scenario(same tables, same connections, same data)
with MySQL and SQLServer using JDBC drivers. The memory is not
increasing.

We checked the memory using JProbe. What we found is
1. 64% of the memory is consumed by byte[] allocated inside Oracle JDBC
driver.(Exactly , it is allocated by
oracle.jdbc.dbaccess.DBItem.clone())
2. 27% of the memory is consumed by Objects of class TTCItem of Oracle
driver.

Waht will be the reason?
Anybody observed such a scenario?
Any help will be appreciated?

REgards
sjohn
Robert Klemme - 13 Apr 2006 12:26 GMT
> Hi,
> I have  a JDBC program connecting to Oracle 9i Database using
[quoted text clipped - 22 lines]
> 2. 27% of the memory is consumed by Objects of class TTCItem of Oracle
> driver.

What exactly do you mean by item 3 above?  Do you store the
PreparedStatement with the Connection?

   robert


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.