How to monitor db connections using classes/db/DbPDO.php

I am running into the problem where there are too many max_user_connections causing 500 errors. Since being on a shared server, these cannot be increased. I’m running Prestashop and I’m trying to find what method or functionality is causing this issue.

How can I monitor which routines are using classes/db/DbPDO.php?

*ERROR*     v1.7.8.11   2025/07/19 - 00:18:23: Link to database cannot be established: SQLSTATE[42000] [1203] User XXXXX already has more than 'max_user_connections' active connections at line 137 in file classes/db/DbPDO.php

I have contacted the server provider and they unfortunately cannot help me with this issue.