Flaschenhälse in der PostgreSQL mit pg_activity finden
Wenn man langsame Queries finden oder Prozesse von Odoo direkt in der Postgres nachstellen möchte, hilft die in Python geschriebene Konsolen Anwendung "pg_activity".
pg_activity
# pip installieren
$ wget https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py
$ pip install psycopg2
$ apt-get install python-dev
$ pip install psutil
# pg_activity installieren
$ su
$ pip install pg_activity
# pg_activity starten
$ sudo -u postgres pg_activity -U postgres
Die Anleitung zu der Anwendung unter https://github.com/julmon/pg_activity