I could not live without a log file.<p>You should create a log file (text file is fine), where you write as much as possible about the program flow: user logged in, user navigates ..., request started, query submitted with parameters, query responded with 1100 records, result processed, result formatted, result delivered, finished request.<p>The log should be appropriately detailed.<p>Correlate the log entries with the user ID, session ID, request ID, thread ID, etc, whatever appropriate.<p>Timestamp the log entries with millisecond times (2021-12-27 14:21:33.512)<p>Watch and observe the request flows over period of days.<p>Perhaps you will see where the problems are.<p>1) Too many records fetched from DB.<p>2) Too slow DB fetch (missing indexes)<p>3) Cold DB caches<p>4) Some exponential loops<p>Instead of text file, you can use a structured log, but a simple text file will quickly give you results.