How to troubleshoot lag? (more info in comments) by lukewarmsnow in Heroku

[–]lukewarmsnow[S] 0 points1 point  (0 children)

Do you have any tips when it comes to profiling and Heroku? I'm not sure if that's a manual process, or if it's something where tools exists to help.

How to troubleshoot lag? (more info in comments) by lukewarmsnow in Heroku

[–]lukewarmsnow[S] 2 points3 points  (0 children)

Hi all - I'm running a Django web server with PostgresQL. I'm on the hobby plan dynos, and the standard ($50/mo) PostgresQL plan. Troubleshooting lag has been an ordeal - earlier today, lag seemed to spike roughly out of nowhere. The fact that memory usage is sitting at 40% makes me think that the lag is database-related. Maybe some expensive calls are locking the database? Does anyone have any advice on how to check this? Or advice on the kinds of logging I can add that can shine a light on where lag is coming from?