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 > Hang on Database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-11-11, 12:44
sysdba1 sysdba1 is offline
Registered User
 
Join Date: Aug 2011
Posts: 27
Hang on Database

We have one Java Virtual machine(appserver) which connects to the database and perform work.This JVM spawns 20 threads to the database to do its work.Now,the real problem is all the 20 threads are being used up and JVM is unable to spawn a new thread and the application is struck and eventually not responding and our website is down.In the database ,when this incident occurs,I am seeing only one or two applications in 'UOW Executing' status.Any idea,what's going on here?
Reply With Quote
  #2 (permalink)  
Old 08-11-11, 13:19
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The problem is at the JVM side. Either it is not sharing the connections properly or the users of the connections are not behaving properly.

Andy
Reply With Quote
  #3 (permalink)  
Old 08-11-11, 14:01
sysdba1 sysdba1 is offline
Registered User
 
Join Date: Aug 2011
Posts: 27
Any tests I can perform to rule out DB2 database as culprit?
Reply With Quote
  #4 (permalink)  
Old 08-11-11, 14:02
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
On the DB2 server, try to connect to the database. If it works then DB2 is not the problem.

Andy
Reply With Quote
  #5 (permalink)  
Old 08-11-11, 14:07
sysdba1 sysdba1 is offline
Registered User
 
Join Date: Aug 2011
Posts: 27
Thankyou...but the issue doesn't occur everytime...it connects to the db well and continues its work for 10 to 12 hrs and then suddenly the hang occurs..I am able to connect ,run sql's take snapshots etc when this issue happens..so you say its not db2.Any idea if db2 server(lpar) not the database may be cuasing this?
Reply With Quote
  #6 (permalink)  
Old 08-11-11, 14:10
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
If you are able to use the database outside the application while the application is hanged, then it is not the database.

Andy
Reply With Quote
  #7 (permalink)  
Old 08-11-11, 14:12
sysdba1 sysdba1 is offline
Registered User
 
Join Date: Aug 2011
Posts: 27
thankyou..I think that answers my question..appreciate it
Reply With Quote
  #8 (permalink)  
Old 08-11-11, 17:50
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
My guess would be that you probably have a deadlock in your application. It takes some time until the conditions are meat, i.e. the right code is running concurrently in multiple threads to run into the deadlock. That would at least explain the 10-12h.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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