OpenTP1 Version 7 Programming Guide
(1) Names of directory and file to which deadlock information is output
Deadlock information is output as follows.
- Deadlock information is output to the directory $DCDIR/spool/dclckinf/ of the node containing the lock service which detected the deadlock or timeout.
- Every time deadlock information occurs, it is output as one file. The date and time at which the deadlock or timeout occurred are used as the file name. The file name length differs depending on whether the date is one or two digits.
Example
Oct. 3, 7 h. 41 m. 00 s. : Oct3074100
Oct. 10, 15 h. 5 m. 27 s. : Oct10150527
|
This file name is displayed in the message log which indicates that a deadlock occurred. Delete files which are no longer necessary.
Figure B-1 shows the output format of deadlock information displayed when a deadlock is detected. Figure B-2 gives an output example.
Figure B-1 Output format of deadlock information
- Explanation:
- (1) Time at which the deadlock was detected
- (2) Server name and process ID of the access requester
- (3) Transaction global identifier of the access requester
- (4) Transaction branch identifier of the access requester
- (5) Information on the server acquiring the resources
- Name of the server requesting lock
- Lock mode (PR or EX)
- Name of the occupied resource
- MIGRATE/BRANCH request type
- (6) Information on the server waiting for resource unlocking
- Name of the server requesting lock
- Lock mode (PR or EX)
- Name of the resource to be unlocked
- MIGRATE/BRANCH request type
- (7) Time at which resource unlock wait occurred
- Note
- Items (2) to (7) are output for each UAP (server process) involved in the deadlock.
Figure B-2 Output example of deadlock information
- #
- When there is no occupied resource, this field is displayed as blank.
Figure B-3 shows the output format of timeout information displayed when a timeout is detected. Figure B-4 gives an output example.
Figure B-3 Output format of timeout information
- Explanation:
- (1) Time at which the timeout was detected
- (2) Server name and process ID related to the timeout
- (3) Transaction global identifier related to the timeout
- (4) Transaction branch identifier related to the timeout
- (5) Information that was exclusively used by the server having caused the timeout. This information is output for all resources that were occupied by the server having caused the timeout.
- Name of the server requesting lock
- Lock mode (PR or EX)
- Name of the occupied resource
- MIGRATE/BRANCH request type
- (6) Wait information on the server having caused the timeout
- Name of the server requesting lock
- Lock mode (PR or EX)
- Name of the resource to be unlocked
- MIGRATE/BRANCH request type
- (7) Name and process ID of the server constituting the factors of the timeout
- (8) Transaction global identifier constituting the factors of the timeout
- (9) Transaction branch identifier constituting the factors of the timeout
- (10) Information that was exclusively used by the server constituting the factors of the timeout. This information is output for all servers constituting the factors of the timeout.
- Name of the server requesting lock
- Lock mode (PR or EX)
- Name of the occupied resource
- MIGRATE/BRANCH request type
- Note
- Items (7) to (10) (concerning a server waiting for resource acquisition or unlocking) are output for each resource which was about to be occupied by the server having caused the timeout when the timeout occurred.
Figure B-4 Output example of timeout information
- #
- When there are no occupied resources, this information is not output.
If the TP1/FS/Table Access is in use and use of its resource encounters deadlock time-out, the output information will contain the table name, key values, among others.
The figure below shows the format of information which will be output when a deadlock is detected.
Figure B-5 Output format of TAM resource deadlock information
- Explanation:
- (1) TAM table name indicated by the resource name
- If the resource name begins with T, the TAM table indicated by (1) is the resource; lines (2) and (3) are not output.
- If the resource name begins with R, the TAM record is the resource; it is on the TAM table indicated by (1). In this case, lines (2) and (3) are output.
- (2) Key length of the TAM record indicated by the resource name
- (3) Key value of the TAM record indicated by the resource name
- The key value is given in [ ] in hexadecimal.
- If the key value is printable, the printable characters are output to the right of [ ]; if it is not, '.' is output to the right of [ ]. If the key value is less than a multiple of 16, the remaining area is padded with 00s.
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.