If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Performance Issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-22-11, 10:23
edwin_fredrick edwin_fredrick is offline
Registered User
 
Join Date: Oct 2004
Posts: 44
Performance Issue

Hi All,

We recently set up 2 DB2 9.5 Servers, 1 for production and 1 for Testing with similar configuration.

When we execute a query on Production server, It gets executed in milli seconds thru command editor.

Where as the same query on Testing server, it takes more that 3-4 seconds. One difference while setting up Testing server is, the memory was upgraded after installing DB2.

The Memory usage is around 4 GB out of the 16 GB RAM on testing server. And CPU usage is very minimum.

On both Database, we have setup Maintainence for Reindexing & Reorg to run every night.

I need some pointers to check & isolate the issue on Testing Server as why it is taking 3-4 seconds to execute a simple query.

Any help from DB2 experts is highly appreciated.

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-22-11, 10:39
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
What are the sizes of the bufferpools?
Different indexes on Tables?
Check Statistics for the Tables/Indexes. Are they the same (Numbers of Rows, ...)?
dbm and db config

Are the access plans are the identical on both systems?
Reply With Quote
  #3 (permalink)  
Old 11-22-11, 23:23
edwin_fredrick edwin_fredrick is offline
Registered User
 
Join Date: Oct 2004
Posts: 44
Quote:
Originally Posted by nvk@vhv View Post
What are the sizes of the bufferpools?
Different indexes on Tables?
Check Statistics for the Tables/Indexes. Are they the same (Numbers of Rows, ...)?
dbm and db config

Are the access plans are the identical on both systems?

The numer of rows are infact less in Production Server. I have updated the statistics manually also. The tables & indexes are same in both the Databases.

Size of the bufferpool is same.
Reply With Quote
  #4 (permalink)  
Old 11-23-11, 09:16
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Different amount of rows may change the access plans.
Have you checked the access plans in Prod and Test?
Reply With Quote
  #5 (permalink)  
Old 11-24-11, 05:04
prakash56 prakash56 is offline
Registered User
 
Join Date: Jan 2004
Location: UK
Posts: 11
db2 explain plans

hiya,

Can you please share EXPLAIN (preferably db2exfmt output) for SQL from both production and test environments?

Last edited by prakash56; 11-24-11 at 06:43.
Reply With Quote
  #6 (permalink)  
Old 11-25-11, 06:39
angoca angoca is offline
Registered User
 
Join Date: Mar 2006
Location: Bogota, Colombia
Posts: 6
Active databases

Hi,

Are you sure that the databases in test env are already activated when you execute the query?

Activate means that there is at least one established connection, or the activate db command has been issued.

Also, take a look at the access plan, and compare the timeruns between both envs. Probably, the statisques are not the same, thus the time is different in both envs.
Reply With Quote
  #7 (permalink)  
Old 11-26-11, 03:28
edwin_fredrick edwin_fredrick is offline
Registered User
 
Join Date: Oct 2004
Posts: 44
Thanks for all you suggestions. I will try to get the access plans for both Production & Testing Server.
Reply With Quote
  #8 (permalink)  
Old 11-28-11, 01:51
siddhu.pandu0854 siddhu.pandu0854 is offline
Registered User
 
Join Date: Nov 2011
Posts: 43
Unhappy DB2 Replication Process

Hi all its very helpfull information to all of us


Thanks & Regards
Siddhu

Last edited by siddhu.pandu0854; 11-28-11 at 01:55.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On