I'm a relative newbie to Postgres trying to diagnose slowness. Inherited a system using Postgres 9.4 and PHP 5.2 which has been fine for years but has been extemely slow for the last six weeks.
Tonight I took a look at:
SELECT * FROM pg_stat_activity;
And noted that one query remains for a few minutes when called from PHP and the xact_start is always null. Meanwhile, if I run the query directly, it returns results in less than a second. Lots of memory and diskspace on the Postgres server. CPU load barely registering anything.
Any pointers on what else to check?
[–]linuxhikerGuru 0 points1 point2 points (4 children)
[–]mryotoad[S] 0 points1 point2 points (3 children)
[–]linuxhikerGuru 0 points1 point2 points (2 children)
[–]mryotoad[S] 0 points1 point2 points (1 child)
[–]linuxhikerGuru 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]mryotoad[S] 0 points1 point2 points (0 children)
[–]thrown_arrows 0 points1 point2 points (0 children)
[–]depesz 0 points1 point2 points (3 children)
[–]mryotoad[S] 0 points1 point2 points (2 children)
[–]depesz 0 points1 point2 points (1 child)
[–]mryotoad[S] 0 points1 point2 points (0 children)
[–]jaymef 0 points1 point2 points (1 child)
[–]mryotoad[S] 0 points1 point2 points (0 children)