Monitor database deadlocks on two or more different transactions waiting for the same database lock
When the number of events is large, the Monitor database deadlocks on two or more different transactions waiting for the same database lock. When this happens, one of the transactions fails and is retried as specified by the model version property "Maximum number of event processing failures." After the configurable number of retries fail due to deadlocks, the event and all events that follow that are related to the same instance are sent to the error queue.
About this task
To resolve the problem, resubmit the failed event for processing by completing the following steps:
Procedure
- In the WebSphere® Application Server administrative console, click .
- Click the number under Failed Instances of the monitor model whose failed events you want to resubmit.
- Click the number under Failed Events of the instance whose failed events you want to resubmit.
- Select the event you want to resubmit.
- Click Resubmit.
- Click OK.
Eliminating future deadlocks
About this task
Procedure
- In the WebSphere Application Server administrative console, click .
- Click wbm_modelid_modelversion_FragmentProcessing.
- Change Maximum number of threads to 1. The default value for "Maximum number of threads" is 1.
- Click OK.
Eliminating future deadlocks on DB2 Database for Linux, UNIX, and Windows
About this task
db2set DB2_SKIPINSERTED=ON
db2set DB2_SKIPDELETED =ON
Multiple threads will not deadlock when the DB2 instance registry variables DB2_SKIPINSERTED and DB2_SKIPDELETED are set to 'ON'.