• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Memory leaks

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We have an application running on weblogic. Our application maintains sessions using httpsession and user entity bean storing user info. When I am testing for memory leaks using jprobe I found that for each database transaction, some oracle.jdbc.* objects are being created and not getting garbage collected (I tried forcing garbage collection many times).
I am getting connections from the connection pools in weblogic.
Some of the objects which are being accumulated over time are
oracle.jdbc.ttc7.TTCItem
oracle.jdbc.dbaccess.DBData
oracle.jdbc.ttc7.DBColumn
java.lang.String
byte[] ... etc
Why are these objects are getting accumulated in the heap and not garbage collected?
I made sure that after every query to database I am closing the resultset, statement and connection. Still I am not sure why this objects are increasing and causing memory leaks.
Also I found from Jprobe, after timeout none of our application related classes exist in the Runtime Heap.
Thanks
Krishna.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am running a application on HP BlueStone App server and saw the same pattern that you have posted using JProbe.
I have filed a bug with Oracle which Oracle has ack indeed is a JDBC driver problem.
have you figured out any workarounds??
 
Krishna Radha
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. We were using 8.1.6 jdbc driver with which we got that problem. When we installed 8.1.7 driver it worked fine. No more issues.
 
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic