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 > Pid

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-07-11, 12:43
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
Pid

hi

in the diag file we can each entry has PID

incase the all the application is forced off and new connection comes in does the PID changes not sure not tried yet.

Regarding
SQL1224N error, one of the feature of this error is when ur shared memory is reached the limit db2 internally force off the connection (in which the user gets SQL1224N error) and it does not put any error in diag file and continues working as normal and taking new connection, it that possible.

regds
Paul
Reply With Quote
  #2 (permalink)  
Old 09-07-11, 19:52
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I dont remember to have observed. My response is theoretical

Quote:

in the diag file we can each entry has PID

incase the all the application is forced off and new connection comes in does the PID changes not sure not tried yet.
assuming unix,
In pre-9.5, it depends on which db2agent from the agent pool is used.


in 9.5 and above, PID will change only if the instance is restarted. tid will change depending on which agent is used.

use the commands

db2pd -edus
db2pd -agents

to understand.


Quote:
Originally Posted by Mathew_paul View Post
Regarding
SQL1224N error, one of the feature of this error is when ur shared memory is reached the limit db2 internally force off the connection (in which the user gets SQL1224N error) and it does not put any error in diag file and continues working as normal and taking new connection, it that possible.

regds
Paul
have you tried diaglevel 4?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 09-08-11, 04:17
Naval29 Naval29 is offline
Registered User
 
Join Date: Apr 2008
Posts: 9
Logically..if a connection is completely forced off then a new connection should come with a new Pid.

Thanks
Naval K
Reply With Quote
  #4 (permalink)  
Old 09-08-11, 04:29
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Naval, If there is an avaialble agent in the pool, why will you get a new pid (and hence a new agent being created)? Cant the same agent be used? Can you pl clarify

Thanks
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 09-08-11, 05:17
Naval29 Naval29 is offline
Registered User
 
Join Date: Apr 2008
Posts: 9
When a connection is forced completely means, related connection pool agent is also released. And if agent is also released means a new pid would be allocated to a new connection. Let me know if my understand is not correct.

Thanks
Naval K
Reply With Quote
  #6 (permalink)  
Old 09-08-11, 05:28
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
-bash-3.2$ db2pd -edus | grep -i agent
20 47827891775808 8570 db2agent (idle) 0 0.030000 0.040000

-bash-3.2$ db2 connect to pd1
Database Connection Information
Database server = DB2/LINUXX8664 9.7.4
SQL authorization ID = PI1
Local database alias = PD1

-bash-3.2$ db2pd -edus | grep -i agent
20 47827891775808 8570 db2agent (PD1) 0 0.030000 0.040000

-bash-3.2$ db2 force application all
DB20000I The FORCE APPLICATION command completed successfully.
DB21024I This command is asynchronous and may not be effective immediately.

-bash-3.2$ db2pd -edus | grep -i agent
41 47827803695424 8610 db2agent (instance) 0 0.000000 0.000000
20 47827891775808 8570 db2agent (idle) 0 0.030000 0.040000
In 9.7, after forcing the applications the db2agent (edu id 20) goes back to the idle pool as above. The second column is the thread-id

I would expect similar behavious in pre-9.5 also.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 09-08-11, 05:49
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
thks for the reply satya & naval
no i have not tried with diag 4,

1) Is is possible coz of shmmax hit db2 can internally force all connection and do a db2start by its own and not putting any info in diag file ?

2) few days back i was getting error continously about crash recovery there was no db2stop or start, again and again it was going into crash recovery this could be reason behind the internal restart of db2 by its own coz of memory issue, i do accept the fact the db is having a memory issue. pls suggest

regds
paul


regds
paul
Reply With Quote
  #8 (permalink)  
Old 09-08-11, 13:48
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
Originally Posted by Mathew_paul View Post
thks for the reply satya & naval
no i have not tried with diag 4,

1) Is is possible coz of shmmax hit db2 can internally force all connection and do a db2start by its own and not putting any info in diag file ?

2) few days back i was getting error continously about crash recovery there was no db2stop or start, again and again it was going into crash recovery this could be reason behind the internal restart of db2 by its own coz of memory issue, i do accept the fact the db is having a memory issue. pls suggest

regds
paul


regds
paul
Lets get down to the basics. What is the problem you are facing?

Anyway, let me answer you questions :
1) unlikely.
2) some application is trying to reconnect to the db repeatedly. Your crash recovery is failing every time, stopping and starting again on the next connection try.
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