473,660 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Performance problem after migration to DB2 v8

We have developed an application which was running under DB2 v7.2.5
quite well for some years. Four weeks ago we installed DB2 v8.1.5
Express Fixpak 5 on a new Server (hardware is nearly the same as on the
DB2 v7.2.5 machine). The new Server runs on Windows 2003. Last week we
installed another server with the same hardware with DB2 8.1.5 Workgroup
Server Fixpak 5 under Windows 2000 Server. Both servers running DB2 v8
databases are about 10x slower than our old server with DB2 v7.2.5.

On our DB2 7.2.5 server we made an offline backup. On the DB2 8.1.5
machines we made a restore to import and migrate the database.

The parameters for the database manager and the parameters for the
database are the same under v7 and v8.

The database under DB2 v7.2.5 was tuned very well. We used a lot of
indexes and we have allocated enough RAM for the buffer pool.
The DB2 v8.1.5 seems to ignore most of our indexes when executing SQL
statements. We have already tried to use another optimization level
rather than the default level, but the performance problems are the same.

We are NOT using runstats because all of our SQL statements were tuned
against v7.2.5 with indexes. In the past we have seen that runstats
would lead to a non predictable performance behavior of the database.
The database has about 150 tables (5 tables > 3 million records, 5
tables > 100.000 records, the other tables are small). All tablespaces
are SMS. The database is used in an OLTP environment, so we have to
assure that the SQL statements have always the same performance behavior.

Hundreds of our SQL statements within the application are extremely slow
under DB2 v8. It is not a suitable solution for us to tune all these
statements against v8, because this would take some months of work.
We rather think that we have overlooked some important new
feature/parameter in the DB2 v8 software. Or maybe the DB2 v8 SQL
optimizer is really that worse .....??

We have also tried to use the Configuration Advisor. We used the
suggested parameters - without success.

We also know that the problems are caused by single (and quite simple)
SQL statements and not by huge sorts or by huge inserts/updates.

The following example is a simple UPDATE statement which should update
one single record. The columns of the where clause are the same as the
primary key index columns. The snapshot utility show us that the
database is making a full table scan, because it reads 115599 rows (the
complete table). Normally we think the database should use the primary
key index to find the row in this simple example. When we try to use the
same where clause within a SELECT statement, then the database uses the
primary key index and reads exactly 1 row.

Anzahl Ausführungen = 1
Anzahl Kompilierungen = 1
Schlechteste Vorbereitungsze it (ms) = 21
Beste Vorbereitungsze it (ms) = 21
Intern gelöschte Zeilen = 0
Intern eingefügte Zeilen = 0
Gelesene Zeilen = 15599
Intern aktualisierte Zeilen = 2
Geschriebene Zeilen = 5
Sortiervorgänge für Anweisungen = 0
Logische Lesevorgänge im Pufferpool = 15389
Physische Lesevorgänge im Pufferpool = 0
Logische Lesevorgänge in temporären Daten des Pufferpools = 6
Physische Lesevorgänge in temporären Daten des Pufferpools = 0
Logische Lesevorgänge im Pufferpoolindex = 15527
Physische Lesevorgänge im Pufferpoolindex = 0
Logische Lesevorgänge im temporären Pufferpoolindex = 0
Physische Lesevorgänge im temporären Pufferpoolindex = 0
Gesamte Ausführungszeit (sek.ms) = 0.318457
Gesamte Benutzer-CPU-Zeit (sek.ms) = 0.312500
Gesamte System-CPU-Zeit (sek.ms) = 0.000000
Anweisungstext =
UPDATE ag_produktion SET stueck_gesamt = stueck_gesamt + ( 1 * 1 ),
takte = takte + 1 WHERE werkscode = 5 AND
maschinennummer = 'abc' AND auftragsnummer = 'anr' AND
splittnummer = 0 AND arbeitsgangnumm er = 30 AND (beginn <
'2005-06-05-15.00.00' AND status = 'A')

Any kind of answers or hints would be appreciated.
Nov 12 '05 #1
3 4165
"Mario.Reif " <Ma********@gam ed.com> wrote in message
news:40******** @e-post.inode.at.. .

We are NOT using runstats because all of our SQL statements were tuned
against v7.2.5 with indexes. In the past we have seen that runstats
would lead to a non predictable performance behavior of the database.
The database has about 150 tables (5 tables > 3 million records, 5
tables > 100.000 records, the other tables are small). All tablespaces
are SMS. The database is used in an OLTP environment, so we have to
assure that the SQL statements have always the same performance behavior.

DB2 version 8 is not slower than version 7, at least not in any measurable
amount. You have some kind of serious problem.

I don't understand your reason for not running runstats in version 7, but
that sounds like it could be your problem.

First you should reorg your tables, then do runstats with full distribution
and index all. Check the command reference for details on the exact syntax.

You can backup your database before hand and then restore it if you don't
like the performance with the runstats. It is very rare that runstats causes
a performance problem, especially if you have the latest fixpak (which I
don't believe you had with version 7).
Nov 12 '05 #2
Hello Mark,

thank you for your posting!

Today we tried to set all our tables VOLATILE (ALTER TABLE...).
After this the database performance was 500% better than before!!

Tonight we will run a script which will run runstats and reorg for all
tables and indexes as you suggested.
I will let you know about the impact of this script to the database
performance tomorrow.

Regards
Mario
DB2 version 8 is not slower than version 7, at least not in any measurable
amount. You have some kind of serious problem.

I don't understand your reason for not running runstats in version 7, but
that sounds like it could be your problem.

First you should reorg your tables, then do runstats with full distribution
and index all. Check the command reference for details on the exact syntax.

You can backup your database before hand and then restore it if you don't
like the performance with the runstats. It is very rare that runstats causes
a performance problem, especially if you have the latest fixpak (which I
don't believe you had with version 7).

Nov 12 '05 #3
"Mario.Reif " <Ma********@gam ed.com> wrote in message
news:40******** @e-post.inode.at.. .
Hello Mark,

thank you for your posting!

Today we tried to set all our tables VOLATILE (ALTER TABLE...).
After this the database performance was 500% better than before!!

Tonight we will run a script which will run runstats and reorg for all
tables and indexes as you suggested.
I will let you know about the impact of this script to the database
performance tomorrow.

Regards
Mario

Setting the table to volatile basically ignores the statistics (which is
good in your case since you didn't run runstats) and uses any indexes which
are available.

When you do the runstats, make sure you gather distribution stats at least
on the key columns. DB2 will ignore the new statistics unless you turn
volatile off.
Nov 12 '05 #4

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

Similar topics

4
2322
by: Bastien Raich | last post by:
Hello, I've been developping a Java application using sun's 1.4.1 on my NT4 box. It's a financial application that retrieves market data in real time, displays it in JTables, do some computations, and from which you can also open small dialogs to send orders to the market... client / server based (but not Java connection, it's a simple socket connection)
14
7942
by: Ruth | last post by:
Hi All I am not a DBA, but a unix administrator. After our DBA's upgraded from oracle 8.0.5 to oracle 8.1.7.4 on our test server, we have noticed a big slow down in our application (acocobol). From ~10mins to ~45mins. Server info:
0
2394
by: Jindrich Prchal | last post by:
Hi there. We are running DB2 v7.2 for Win NT on Windows 2000 SP3 machine with poor configuration AMD 1800+, 512MB RAM and usual IDE harddisk. During tests of migration our batch programmes written in Visual Age Generator by IBM from OS390 to Win2000 was this machine our test machine and migrated programmes ran quick enough there. Batch programmes are generated into C++ code from VaGen 3.1, compiled by MSVC++ and run on the machine with...
0
932
by: Christian Correa | last post by:
Has anyone experienced a performance decrease after migrating a project to ..NET? We migrated our code from ASP to ASP.NET, modifying sintax whenever needed. Basically, the application is the same but it now has its code separated into the .aspx and codebehind (.aspx.vb) files. After compiling the DLL in /bin and some debugging, the application runs just fine and takes advantage of having the codebehind compiled. Migration will continue so...
1
13675
by: marcfischman | last post by:
Please help. I have a website running on a linux/apache/mysql/php server. I receive about 8,000-10,000 visitors a day with about 200,000 to 300,000 page views. The server is a RedHat Linux server running PHP 5.x, MySQL 5.x, Apache 2.x We have been suffering from a number of performance issues. Our hosting company has set our max connections to 100, and we are using persistent connections in PHP. At times the mysqld process takes 100%...
0
1174
by: =?Utf-8?B?U3VuZGVr?= | last post by:
I have a web service application on a server with iis 6. After then conversion from .net 2003 to .net 2005 performance slow down. i have already set iis to work with asp .net 2.0 Someone can help me? thanks -- Sundek
2
2031
by: manindra | last post by:
Recently we migrated our product from MS-SQL 2000 to Oracle 9i. We see lot of performance degradation due to migration. Some times complex queries are hitting 10 fold slower than SQL Server. Reasons could be, 1.The Oracle Server with respect to configuration may have issues. 2.The SQL server optimized queries are not suitable for Oracle(The normal cases, such as datatypes, syntax etc are already taken care). Any help on this is...
2
2766
by: sdanda | last post by:
Hi , Do you have any idea how to improve my java class performance while selecting and inserting data into DB using JDBC Connectivity ......... This has to work for more than 8,00,000 of records ..... Can you give some performance tips if you have known 1) For this I am using oci driver ( because I m using oracle 10g) instead of thin driver 2) In that programme I m using prepared statement instead of statement 3) I am...
8
2725
by: Tomasz J | last post by:
Hello developers, After migrating my web project application (using the old model) to .Net Framework 3.5 and Ajax Control Toolkit release 20820 the Accordion control no longer works correctly. In certain cases (only) it renders but is dead - does not initialize. Before the migration it worked, no changes have been made. Here is the complete scenario description:
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8754
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7362
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1740
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.