Support Article
PEGA0026 alerts display after deadlock on external database
SA-69650
Summary
After a deadlock occurs on an external database, PEGA0026 alerts display and connections pile up on the database .
Error Messages
Not Applicable
Steps to Reproduce
- Launch the System Management Application (SMA) node.
- Navigate to the database management.Select pega_work.
- Click Database details. This displays 40-50 connections in the Pega managed connection column.
Root Cause
A defect or configuration issue in the operating environment.
Pega managed the external data source The application server did not manage the external data source and the connections. Hence, connection pooling and validation were not used.
Resolution
Make the following change to the operating environment:
- Add the external data source to the Tomcat context.xml similar to how it is added for the jdbc/PegaRULES data source. Set the minimum and maximum connections
- Add the connection validation in the pool using the below:
testOnBorrow="true"
testWhileIdle="true"
For Tomcat 8, the default Database Connection Pool (DBCP) factory is problematic. The below factory is used with Tomcat 8.
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
Published January 4, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.