Connect ID is getting locked when PSAPPSRV gets restarted due to bad password
We are facing intermittent issue in different domains whenever a PSAPPSRV service gets restarted after it reaches the Recycle count Threshold. Seeing the errors Security processing failed with reason "24" ("USERNAME AND/OR PASSWORD INVALID"). as it passes the bad password to connect to database.
On Database side, connect id is set to revoke after 5 wrong password attempts, so it is bringing down the application as it getting locked out after 5 wrong attempts.
I have attached some error lines from the Appserver log files when the error occurs. The error comes for 110 times and the particular PSAPPSRV service will not restart and it will be down.