by andrelaszlo · 3y ago · 0 comments
On the instance itself, you can check memory usage (free) and cpu usage (top).
Most of the popular graphical clients for PG (I've used pgadmin a little) have some way to show current resource usage as well. PG keeps quite a lot of statistics by default, the manual is quite good: https://www.postgresql.org/docs/current/performance-tips.htm...
Check the EC2 dashboard for your instance as well, to see if any other resource usage is high.
I'm guessing some important bottleneck was being hit, but I have no idea what it was (maybe 1GB RAM was causing spillover to disk in a query or something? like that?).
It seems important to understand what bottleneck I hit -- but frankly, I have no idea.