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; --> I changed the packagesize. The problem is still happening. I just took a dynamic SQL snapshot. There are 5k ...


Go Back   Unix Technical Forum > Database Server Software > DB2

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

I changed the packagesize. The problem is still happening.

I just took a dynamic SQL snapshot. There are 5k distinct "statement
text" entries. Another interesting detail: there are only 94 statements
that use "?". Seems like my app is using a lot of static statements.

I also looked at other counters:

# Very few statements had a 'worst preparation' time (above 1000ms). In
average, <10 ms.
# Only two of these statements had more than 1 number of compilations.

I am still confused. Why have this problem begin after a simple V8
client bind ...

Thanks again.

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

Michel Esber wrote:
> I changed the packagesize. The problem is still happening.
>
> I just took a dynamic SQL snapshot. There are 5k distinct "statement
> text" entries. Another interesting detail: there are only 94 statements
> that use "?". Seems like my app is using a lot of static statements.
>
> I also looked at other counters:
>
> # Very few statements had a 'worst preparation' time (above 1000ms). In
> average, <10 ms.
> # Only two of these statements had more than 1 number of compilations.
>
> I am still confused. Why have this problem begin after a simple V8
> client bind ...

Hmph.. V7 server you said...
Is this AIX? kill -36 <busyprocessid>
should tell you where the beast is hanging out...
But this turns quickly into open a PMR IMHO

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
  #13 (permalink)  
Old 02-27-2008, 07:03 AM
Michel Esber
 
Posts: n/a
Default Re: Many applications in Compiling status

This is a Linux server. Is there any similar kill signal in Linux ?
'kill -l' shows SIGRTMIN+4.

All db2sysc processes are consuming a small chunk of CPU. But as a
group, cpu usage is very high.

The problem really comes and goes. System is stable for 20 minutes,
then busy for some time.

I heard IBM discontinued support for V7 servers. Is it still possible
to open a PMR in this situation ? We do have a support contract.

Thanks,

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

Michel Esber wrote:
> This is a Linux server. Is there any similar kill signal in Linux ?
> 'kill -l' shows SIGRTMIN+4.
>
> All db2sysc processes are consuming a small chunk of CPU. But as a
> group, cpu usage is very high.
>
> The problem really comes and goes. System is stable for 20 minutes,
> then busy for some time.
>
> I heard IBM discontinued support for V7 servers. Is it still possible
> to open a PMR in this situation ? We do have a support contract.

You mean you have an extended support contract? Sure, of course you can
open a PMR.
Not to pur salt into the wound, but: DB2 V8 has a whole slew of cool
problem determination features which would help here.
Especially the db2pd tool (aka Informix onstat) woudl be useful.

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
  #15 (permalink)  
Old 02-27-2008, 07:03 AM
Michel Esber
 
Posts: n/a
Default Re: Many applications in Compiling status

Yes, DB2 migration is being taken seriously now. I could open a PMR
today, but it will take some time until IBM provides support (I totally
understand this). I need to study a workaround for the case ASAP.

I have ran another event monitor on the DB and here is another
interesting detail:

OPERATION EXECUTIONTIME
------------------------------ --------------------
Close 16.318283
Prepare 2.536525
Close 2.053398
Prepare 2.775977
Close 2.737252
(...)

Open and Execute statement operations are fast. Close and Prepare are
slow.

Why would DB2 take so long to run such simple operations ... seems like
a nightmare.

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

Michel Esber wrote:
> Yes, DB2 migration is being taken seriously now. I could open a PMR
> today, but it will take some time until IBM provides support (I totally
> understand this). I need to study a workaround for the case ASAP.
>
> I have ran another event monitor on the DB and here is another
> interesting detail:
>
> OPERATION EXECUTIONTIME
> ------------------------------ --------------------
> Close 16.318283
> Prepare 2.536525
> Close 2.053398
> Prepare 2.775977
> Close 2.737252
> (...)
>
> Open and Execute statement operations are fast. Close and Prepare are
> slow.
>
> Why would DB2 take so long to run such simple operations ... seems like
> a nightmare.
>

Careful, I think you are falling victim to a red herring here.
If I'm not entirely mistaken the time you see is the entire time to
process the cursor, including time spent in the application.
With cursors it's best to look at USER and SYSTEM CPU time only.
Again CLOSE would include OPEN and all the FETCH time.
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
  #17 (permalink)  
Old 02-27-2008, 07:03 AM
Serge Rielau
 
Posts: n/a
Default Re: Many applications in Compiling status

Serge Rielau wrote:
> Michel Esber wrote:
>
>> Yes, DB2 migration is being taken seriously now. I could open a PMR
>> today, but it will take some time until IBM provides support (I totally
>> understand this). I need to study a workaround for the case ASAP.
>>
>> I have ran another event monitor on the DB and here is another
>> interesting detail:
>>
>> OPERATION EXECUTIONTIME
>> ------------------------------ --------------------
>> Close 16.318283
>> Prepare 2.536525
>> Close 2.053398
>> Prepare 2.775977
>> Close 2.737252
>> (...)
>>
>> Open and Execute statement operations are fast. Close and Prepare are
>> slow.
>>
>> Why would DB2 take so long to run such simple operations ... seems like
>> a nightmare.
>>

> Careful, I think you are falling victim to a red herring here.
> If I'm not entirely mistaken the time you see is the entire time to
> process the cursor, including time spent in the application.
> With cursors it's best to look at USER and SYSTEM CPU time only.
> Again CLOSE would include OPEN and all the FETCH time.

BTW, could it be your system is thrashing? Is USER or SYSTEM CPU high?
What about swapping?

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
  #18 (permalink)  
Old 02-27-2008, 07:03 AM
Michel Esber
 
Posts: n/a
Default Re: Many applications in Compiling status

Memory is not constrained, but CPU usage is heavy.

I will try to reorg and runstats my most often used tables and see if
it gets any better.

Thanks for the help Serge.

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 01:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com