• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

upgrade to database causes memory fault when running app

 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We were using COM.ibm.db2.jdbc.app.DB2Driver (a type-2 driver). It was working fine with this driver until an upgrade to the database (to DB2 v8). But now it's causing a memory fault when using the original driver.

So we switched to com.ibm.db2.jcc.DB2Driver (using as a type-2 driver) which does not cause the memory fault.

The app copies from a table in one database and writes to an identical table in a different database.

I tried (with the old driver) increasing the JVM memory from 128 to 384m. I also tried decreasing the batch write size from 400 to 100. Neither change resolved the problem. Only using the new driver resolved the issue.

Does anyone have any ideas about could be happening here?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marilyn,
I'm confused. The pre-db2 8 driver from IBM isn't working with db2 8? Or am I reading the question wrong.

If this is it, I wouldn't be surprised. You often have to upgrade drivers when a new version of the database comes out. Especially for vendor supplied drivers.
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it's a different driver. In theory they are both supposed to work with DB2 v8. In actuality, the old driver works with most apps and not with some apps and the new driver works with most apps (including the ones driver #1 doesn't) and not with some other apps (that driver #1 works with). Very frustrating.
 
reply
    Bookmark Topic Watch Topic
  • New Topic