dbTalk Databases Forums  

Java application very slow with DB2 i-series with JT400.jar JDBCdriver.

ibm.software.db2.os400 ibm.software.db2.os400


Discuss Java application very slow with DB2 i-series with JT400.jar JDBCdriver. in the ibm.software.db2.os400 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
goodbazaar@yahoo.com
 
Posts: n/a

Default Java application very slow with DB2 i-series with JT400.jar JDBCdriver. - 09-04-2009 , 04:35 AM






We have developed a J2EE, JBOSS application (on Linux O/S) with DB2 as backend database. As customer wanted a failover of database in real time and hence application was developed without any connnection pool.

We have used prepare statements and open and close JDBC connection for each method.

When we we connect to Linux DB2 UDB (in development environment), the performance of the application is fine.
(1 second for simple screen with simple select statements and 7 seconds for complex screen with multiple Database select/inserts/updates).

Whereas, when we connect to DB2 V5R3 on i-series (AS/400 - QA / Prod environment) using JT400.JAR the application becomes very slow. (3 second for simple screen with simple select statements and 24 seconds for complex screen with multiple Database select/inserts/updates).

Both Linux and DB2 databases contain the same amount of data and schems is same.

Please note the connection query used for AS/400.
SANFRANCISCO_DB1_READ_URL=jdbc\:as400\://IPaddress;libraries\=QGPL;extended dynamic=true;package criteria=select;package cache=true;dateformat\=jis;


We are looking for performance improvement / tuning suggestions to improve performance of J2EE application when connected to DB2 V5R3 on AS/400.

Reply With Quote
  #2  
Old   
dieter.bender@t-online.de
 
Posts: n/a

Default Re: Java application very slow with DB2 i-series with JT400.jar JDBC driver. - 09-04-2009 , 05:57 AM






first of all you need more information and you wil get it by using the
database monitor, it will show up the times needed for connecting, access
plans of the query engine and if you could speed up the database access by
creating missing indexes. For some driver versions extended dynamic was
buggy and lowed down database access.

Dieter Bender

goodbazaar (AT) yahoo (DOT) com wrote:

Quote:
We have developed a J2EE, JBOSS application (on Linux O/S) with DB2 as
backend database. As customer wanted a failover of database in real time
and hence application was developed without any connnection pool.

We have used prepare statements and open and close JDBC connection for
each method.

When we we connect to Linux DB2 UDB (in development environment), the
performance of the application is fine. (1 second for simple screen with
simple select statements and 7 seconds for complex screen with multiple
Database select/inserts/updates).

Whereas, when we connect to DB2 V5R3 on i-series (AS/400 - QA / Prod
environment) using JT400.JAR the application becomes very slow. (3 second
for simple screen with simple select statements and 24 seconds for complex
screen with multiple Database select/inserts/updates).

Both Linux and DB2 databases contain the same amount of data and schems is
same.

Please note the connection query used for AS/400.

SANFRANCISCO_DB1_READ_URL=jdbc\:as400\://IPaddress;libraries\=QGPL;extended
dynamic=true;package criteria=select;package cache=true;dateformat\=jis;


We are looking for performance improvement / tuning suggestions to improve
performance of J2EE application when connected to DB2 V5R3 on AS/400.

Reply With Quote
  #3  
Old   
Kent Milligan
 
Posts: n/a

Default Re: Java application very slow with DB2 i-series with JT400.jar JDBCdriver. - 09-11-2009 , 01:41 PM



V5R3 also is not supported any longer, there a number of SQL performance
enhancements in V5R4 and V6R1. The customer needs to strongly consider upgrading
to a supported release.

In addition to creating indexes, I'd also verify that the latest Database Group
PTF for V5R3 is installed.

dieter.bender (AT) t-online (DOT) de wrote:
Quote:
first of all you need more information and you wil get it by using the
database monitor, it will show up the times needed for connecting, access
plans of the query engine and if you could speed up the database access by
creating missing indexes. For some driver versions extended dynamic was
buggy and lowed down database access.

Dieter Bender

goodbazaar (AT) yahoo (DOT) com wrote:

We have developed a J2EE, JBOSS application (on Linux O/S) with DB2 as
backend database. As customer wanted a failover of database in real time
and hence application was developed without any connnection pool.

We have used prepare statements and open and close JDBC connection for
each method.

When we we connect to Linux DB2 UDB (in development environment), the
performance of the application is fine. (1 second for simple screen with
simple select statements and 7 seconds for complex screen with multiple
Database select/inserts/updates).

Whereas, when we connect to DB2 V5R3 on i-series (AS/400 - QA / Prod
environment) using JT400.JAR the application becomes very slow. (3 second
for simple screen with simple select statements and 24 seconds for complex
screen with multiple Database select/inserts/updates).

Both Linux and DB2 databases contain the same amount of data and schems is
same.

Please note the connection query used for AS/400.

SANFRANCISCO_DB1_READ_URL=jdbc\:as400\://IPaddress;libraries\=QGPL;extended
dynamic=true;package criteria=select;package cache=true;dateformat\=jis;


We are looking for performance improvement / tuning suggestions to improve
performance of J2EE application when connected to DB2 V5R3 on AS/400.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.