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 > System hang, how can I find the cause ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-01-03, 11:11
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
System hang, how can I find the cause ?

Hi ,
I am working with db2v7.2 Aix 5.2,
when I run the application sometimes system hang and after I disconted the application and bring up again it becomes OK , who can I find out which tables cause this problem? db2diag.log does not show me any things, please help me.
Thanks
Reply With Quote
  #2 (permalink)  
Old 10-01-03, 11:22
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: System hang, how can I find the cause ?

Try setting the diag level to 4 or 5 and/or try taking database and OS snapshot to see what's goin on. Optinally can you describe what your application is trying to achieve?

dollar

Quote:
Originally posted by M_RAS
Hi ,
I am working with db2v7.2 Aix 5.2,
when I run the application sometimes system hang and after I disconted the application and bring up again it becomes OK , who can I find out which tables cause this problem? db2diag.log does not show me any things, please help me.
Thanks
Reply With Quote
  #3 (permalink)  
Old 10-01-03, 11:36
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: System hang, how can I find the cause ?

Quote:
Originally posted by dollar489
Try setting the diag level to 4 or 5 and/or try taking database and OS snapshot to see what's goin on. Optinally can you describe what your application is trying to achieve?

dollar
Actually I can not change level to 4 because it impact the performace that at this moment it is so important for client and secondly I do not know when the problem will be happened (sometimes happened and sometime does not).

The application is trying to read a file and populates the data to some tables. I used append mode for those tables, can I find which table cause the problem?
Thank you in advance for your help.
Reply With Quote
  #4 (permalink)  
Old 10-01-03, 12:11
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: System hang, how can I find the cause ?

Quote:
Originally posted by M_RAS
Actually I can not change level to 4 because it impact the performace that at this moment it is so important for client and secondly I do not know when the problem will be happened (sometimes happened and sometime does not).

The application is trying to read a file and populates the data to some tables. I used append mode for those tables, can I find which table cause the problem?
Thank you in advance for your help.
It is not clear what you mean by saying "system hangs". Can you provide more details? Is it the application that stops responding? Is it the instance crash (in that case there would be something in either db2diag.log or in the OS log, or in both)?

If it's the application, can you still connect to the database with the same application from another workstation? Can you connect using CLP? Can you telnet (ssh, rsh, whatever) to the database server?
Reply With Quote
  #5 (permalink)  
Old 10-01-03, 12:37
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: System hang, how can I find the cause ?

Quote:
Originally posted by n_i
It is not clear what you mean by saying "system hangs". Can you provide more details? Is it the application that stops responding? Is it the instance crash (in that case there would be something in either db2diag.log or in the OS log, or in both)?

If it's the application, can you still connect to the database with the same application from another workstation? Can you connect using CLP? Can you telnet (ssh, rsh, whatever) to the database server?
Sorry for unclear describtion.
Yes exactly, application stops responding, and we can start te same application (from scrach) in another workstation. and we can use CLP and telnet to the database server.
Thanks
Reply With Quote
  #6 (permalink)  
Old 10-01-03, 15:04
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: System hang, how can I find the cause ?

Quote:
Originally posted by M_RAS
Sorry for unclear describtion.
Yes exactly, application stops responding, and we can start te same application (from scrach) in another workstation. and we can use CLP and telnet to the database server.
Thanks
I think you will need to enable snapshot monitor for locks and applications and see what's going on when the applications hangs - this should give you an insight. Most likely you'll find some kind of locking problem there.
Reply With Quote
  #7 (permalink)  
Old 10-01-03, 15:09
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: System hang, how can I find the cause ?

Quote:
Originally posted by n_i
I think you will need to enable snapshot monitor for locks and applications and see what's going on when the applications hangs - this should give you an insight. Most likely you'll find some kind of locking problem there.
I will ,
Thank you for your time
Reply With Quote
  #8 (permalink)  
Old 10-01-03, 22:26
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: System hang, how can I find the cause ?

Quote:
Originally posted by M_RAS
I will ,
Thank you for your time
Hi N_I,
I took a snapshot and I saw the application status is "Pending remote request" do you know what is that ? and why the application goes to this status?

Thanks
Reply With Quote
  #9 (permalink)  
Old 10-02-03, 09:43
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: System hang, how can I find the cause ?

Quote:
Originally posted by M_RAS

I took a snapshot and I saw the application status is "Pending remote request" do you know what is that ? and why the application goes to this status?

Thanks
If you have a partitioned database it may mean one of the partitions does not return results in time. You will need to determine which node misbehaves and see what's happening on it by taking a snapshot on that node. This may help:

http://www.mainframeforum.com/t459990.html
Reply With Quote
  #10 (permalink)  
Old 10-02-03, 09:53
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: System hang, how can I find the cause ?

Quote:
Originally posted by n_i
If you have a partitioned database it may mean one of the partitions does not return results in time. You will need to determine which node misbehaves and see what's happening on it by taking a snapshot on that node. This may help:

http://www.mainframeforum.com/t459990.html

Hi n_i,
we do not have partition database , we have just one node with intera_parallel = yes ,

Thanks
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