Unix Technical Forum

Many applications in Compiling status

This is a discussion on Many applications in Compiling status within the DB2 forums, part of the Database Server Software category; --> Environment: DB2 V7 + FP 14 running Linux. One of my systems is performing poorly. CPU is 100% busy. ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:02 AM
Michel Esber
 
Posts: n/a
Default Many applications in Compiling status

Environment: DB2 V7 + FP 14 running Linux.

One of my systems is performing poorly. CPU is 100% busy.

I activated an Event Monitor and the prepared statements sent by
applications are taking very long to execute. I can see a bottleneck
during the PREPARE. When the application issues an OPEN, response is
quick.

When I run a "list applications show detail", I can see dozens of
applications in Compiling status.

Diaglevel 3, DFT_QUERYOPT = 5, DFT_DEGREE= ANY

Can anyone suggest anything that can be looked at in order to fix this
issue?

Thanks,

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:02 AM
Gert van der Kooij
 
Posts: n/a
Default Re: Many applications in Compiling status

In article <1139501686.818969.307400@z14g2000cwz.googlegroups .com>,
Michel Esber (michel@us.automatos.com) says...
> Environment: DB2 V7 + FP 14 running Linux.
>
> One of my systems is performing poorly. CPU is 100% busy.
>
> I activated an Event Monitor and the prepared statements sent by
> applications are taking very long to execute. I can see a bottleneck
> during the PREPARE. When the application issues an OPEN, response is
> quick.
>
> When I run a "list applications show detail", I can see dozens of
> applications in Compiling status.
>
> Diaglevel 3, DFT_QUERYOPT = 5, DFT_DEGREE= ANY
>
> Can anyone suggest anything that can be looked at in order to fix this
> issue?
>
> Thanks,
>
>


(I don't think you have the same problem but just in case...)
I've seen this kind of problem when some tables were changed and
automatic rebinding occured. Rebinding the packages solved the
problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 07:02 AM
Michel Esber
 
Posts: n/a
Default Re: Many applications in Compiling status

I just executed a db2rbind DB all and my system is now stable again.
CPU consumption is back to reasonable levels.

Thank you for your fast response and great hint.

-Michel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 07:02 AM
Michel Esber
 
Posts: n/a
Default Re: Many applications in Compiling status

Unbelievable. After running smooth for approx 20 minutes, my system is
again very slow.

Hundreds of applications in Compiling status. And CPU again at 100%.

Any ideas ?

Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 07:02 AM
Serge Rielau
 
Posts: n/a
Default Re: Many applications in Compiling status

Michel Esber wrote:
> Unbelievable. After running smooth for approx 20 minutes, my system is
> again very slow.
>
> Hundreds of applications in Compiling status. And CPU again at 100%.
>
> Any ideas ?
>
> Thanks
>

Are you swamping your package cache? Check your snapshots!

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 07:02 AM
Serge Rielau
 
Posts: n/a
Default Re: Many applications in Compiling status

Serge Rielau wrote:
> Michel Esber wrote:
>
>> Unbelievable. After running smooth for approx 20 minutes, my system is
>> again very slow.
>>
>> Hundreds of applications in Compiling status. And CPU again at 100%.
>>
>> Any ideas ?
>>
>> Thanks
>>

> Are you swamping your package cache? Check your snapshots!

select PKG_CACHE_NUM_OVERFLOWS, PKG_CACHE_SIZE_TOP, PKG_CACHE_LOOKUPS,
PKG_CACHE_INSERTS
from table(snapshot_database(cast(NULL as varchar(250)),-1)) as t;

--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 07:02 AM
Michel Esber
 
Posts: n/a
Default Re: Many applications in Compiling status

Serge, thanks. Unfortunately I am still running DB2 V7.

Here is what I can see from database snapshots:

Package cache lookups = 11860267
Package cache inserts = 1267129
Package cache overflows = 3
Package cache high water mark (Bytes) = 24602066
Application section lookups = 23711267
Application section inserts = 11558385

It seems like this problem started to happen after we have tried to
bind (@db2ubind.lst @db2cli.lst) from a V8 client to this V7 servers.
During this process, we got many warning. After that, the server was
never the same. I am not sure if this has something to do with the
server behaving so sluggish.

Any other snapshots or parameters I can take a look at?

Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-27-2008, 07:02 AM
Serge Rielau
 
Posts: n/a
Default Re: Many applications in Compiling status

Michel Esber wrote:
> Serge, thanks. Unfortunately I am still running DB2 V7.
>
> Here is what I can see from database snapshots:
>
> Package cache lookups = 11860267
> Package cache inserts = 1267129
> Package cache overflows = 3
> Package cache high water mark (Bytes) = 24602066
> Application section lookups = 23711267
> Application section inserts = 11558385
>
> It seems like this problem started to happen after we have tried to
> bind (@db2ubind.lst @db2cli.lst) from a V8 client to this V7 servers.
> During this process, we got many warning. After that, the server was
> never the same. I am not sure if this has something to do with the
> server behaving so sluggish.
>
> Any other snapshots or parameters I can take a look at?
>
> Thanks
>

How big is your package cache? Seems like you need to get it up past
8000 (*4k).
Do you really have 1.2M Distinct SQL Statements?
Or are you feeding in constants?
Take a look at the dynamic SQL snapshot

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-27-2008, 07:02 AM
Michel Esber
 
Posts: n/a
Default Re: Many applications in Compiling status

My package cache is currently at 6000. MAXAPPLS=1200.

I was reading the documentation and it recommends MAXAPPLS*8. I will
change that and see what happens.

No, the applications send prepared statements and feeds constants. The
number of distinct statements executed in this DB is certainly small.

Thanks,

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-27-2008, 07:02 AM
Serge Rielau
 
Posts: n/a
Default Re: Many applications in Compiling status

Michel Esber wrote:
> My package cache is currently at 6000. MAXAPPLS=1200.
>
> I was reading the documentation and it recommends MAXAPPLS*8. I will
> change that and see what happens.
>
> No, the applications send prepared statements and feeds constants. The
> number of distinct statements executed in this DB is certainly small.

You said this is V7? If it were V8.2 I'd wonder if you bound CLI with
REOPT(ALWAYS)
Take a look at the dynamic SQL snapshot and check number of executions,
etc... Also verify that you really get the parameter markers in the text.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:11 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com