472,789 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,789 software developers and data experts.

DB2 V8.1 FP4 JDBC-Performance-Issue

Hello,
we reached a quite interesting performance-limit while using JDBC type
4 to a DB2 V8.1 database. The DB2 is running on a Intel-based single
CPU-Server with Linux OS.
What we are doing is an OO-loading-service with about 30 single
select-statements per complex-object. Every statement will be prepared
right before execution and will be close right after as well as the
resultset. All data is accessed by a fully indexed column or in most
cases by a primary key.
In order to optimize the throughput we implemented several scenarios,
every time the base is 10000 complex-objects.

1. scenario

sequential load of complex-objects - result: aprox. 1000
complex-objects per min

2. multi-threaded load

using 5 threads - result: aprox. 1100 complex-objects per min
(overall)
using 10 threads - result: aprox. 1100 complex-objects per min
(overall)

It seems that something is serializing the requests (no synchronized
methods in the code), so that in the end the max.-perfomance is about
1100 complex-objects per min, although the server is not at its
ressource-limit.
The DB2-processes share about 35% CPU in every scenario, e.g. 10
threads -> 3.5% per DB2-process / 5 threads -> 7% per DB2-process.

Has anyone an idea were the bottleneck could be found, is there a
parameter to define the max parallel executions in DB2 ?

Joerg
Nov 12 '05 #1
2 1715
Do you have a seperate context for each application? If not, all threads
will be serialized on the single db conneciton. If you're multi context,
look at the server using application snapshots to see if you're locking
your other threads out...

joerg wrote:
Hello,
we reached a quite interesting performance-limit while using JDBC type
4 to a DB2 V8.1 database. The DB2 is running on a Intel-based single
CPU-Server with Linux OS.
What we are doing is an OO-loading-service with about 30 single
select-statements per complex-object. Every statement will be prepared
right before execution and will be close right after as well as the
resultset. All data is accessed by a fully indexed column or in most
cases by a primary key.
In order to optimize the throughput we implemented several scenarios,
every time the base is 10000 complex-objects.

1. scenario

sequential load of complex-objects - result: aprox. 1000
complex-objects per min

2. multi-threaded load

using 5 threads - result: aprox. 1100 complex-objects per min
(overall)
using 10 threads - result: aprox. 1100 complex-objects per min
(overall)

It seems that something is serializing the requests (no synchronized
methods in the code), so that in the end the max.-perfomance is about
1100 complex-objects per min, although the server is not at its
ressource-limit.
The DB2-processes share about 35% CPU in every scenario, e.g. 10
threads -> 3.5% per DB2-process / 5 threads -> 7% per DB2-process.

Has anyone an idea were the bottleneck could be found, is there a
parameter to define the max parallel executions in DB2 ?

Joerg


Nov 12 '05 #2
Hello,
yes, each thread runs withn its own connection. The database snapshots
did not show any severe problem, except the victim-rate in the
bufferpool-snapshot is bit high about 4%.

Thanks

Joerg
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JShurmatz | last post by:
If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web...
0
by: Nils Valentin | last post by:
Hi MySQL Fans ;-), Is it possible that the 3.08 series allows to connect to 4.0.14 versions but not to the 4.1 alpha-versions ? I get belows error when tryig to connect from DbVisualizer which...
0
by: Robert Mazur | last post by:
MySQL 5.0 alpha (binary install) on Solaris 9 -or- RedHat 8.0 mysql-connector-java-3.0.8-stable ----------------------- Is there something different going on with JDBC and the alpha version...
0
by: Bing | last post by:
Hi, I am configuring the same DB2 v8.1 JDBC universal driver (db2jcc.jar and db2jcc_license_cisuz.jar) from DB2 SP5 fix pack under WSAD 5.1.x environment and WebSphere application Server 5.0.2...
0
by: Raquel | last post by:
UDB PE 8.1 on Win XP. Per the manual: DB2 JDBC traces always begin with a header that lists important system information such as key environment variable settings, the JDK or JRE level, the...
5
by: Steffen | last post by:
hi there, i have a problem connecting to a db2 database 7.2.4 on AIX using java when running the javacode on AIX using jdk1.3.1. The classpath is correctly set to java12/... on windows the...
3
by: John | last post by:
Hi All I'm new to set up DB2 though using JDBC for years. my question is: supposed there are 3 computers in local-net, named A,B,C (they are Windows 2000 families). DB2 installed in A (port...
1
by: Praveen | last post by:
Hi, I have installed WebSphere Portal on AIX and connected to DB2 on a remote machine, Getting the followin errors when trying to get the values from database thru applications installed on...
2
by: bevis | last post by:
I'm new to sql server and mysql but this seems like it should be a pretty straight forward jdbc connection. But I have spent almost 2 days just trying to get a jdbc connection. Please help if you...
3
by: Anoop | last post by:
Is it true that there are no type 4 jdbc drivers to connect to a DB2 server v7.1? The DB2 server is hosted on ACF2 (OS/390). We would be connecting from windows and solaris boxes. If it is true,...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.