Hello guys,
I am currently hosting a dozen of Odoo databases on one server. I use docker, with one container containing postgresql and five with odoo services. There is not many visitors yet. I use a recent pull of Odoo 8 from github and 9.4 version of postgres (it was the same with 9.1)
My problem is, after a dozen of hours I have almost an hundred of idle process in the postgres container, all related with the Odoo databases. It seems the connections to postgres never close.
I checked SELECT * FROM pg_stat_activity;, it seems the idle query is always COMMIT or ROLLBACK. Do you have any idea where the problem comes and how I can improve the situation? Do you think it's related on the use of docker?
Thanks,
Yannick.
Hy, I have the same problem with V7 and postgresql 9.3 and without docker on ubuntu server 14.04.1 After users deconnect from OpenERP, their postgresql process stay active : postgres 23905 1.4 1.7 256692 36996 ? Ss 10:36 0:05 postgres: openerp7 xxxxxx [local] idle postgres 24019 0.3 1.7 259516 36184 ? Ss 10:36 0:01 postgres: openerp7 xxxxxxx [local] idle postgres 24631 0.2 1.6 264400 34856 ? Ss 10:38 0:00 postgres: openerp7 xxxxxxx [local] idle postgres 24452 0.3 1.6 259576 34752 ? Ss 10:38 0:00 postgres: openerp7 xxxxxxxx [local] idle postgres 23913 0.5 1.6 259252 34424 ? Ss 10:36 0:02 postgres: openerp7 xxxxxxxx [local] idle postgres 24247 1.2 1.6 256408 34100 ? Ss 10:37 0:03 postgres: openerp7 xxxxxxxx [local] idle postgres 24534 0.2 1.5 259420 31896 ? Ss 10:38 0:00 postgres: openerp7 xxxxxxxxx [local] idle Each user (student) has his own database. Thanks Patrick