Community mailing list archives

Re: Is Odoo keep connections to DB open?

Andi Becker
- 11/18/2015 06:37:56
Set this on a lower value when you are trying to use odoo on digitsalocean as otherwise memory is full very fast and backen no more loading completely

(Andreas Becker)

LisAndi Co. Ltd.
15/21 M.2 Viset Road
Rawai, Muang, Phuket
83130 Thailand

+66 (0)81 606 3378
+66 (0)76 38 33 08
+49 (0)711 50 88788 50 -2
+49 (0)711 50 88788 59 Fax

Skype: lisandi
GoogleTalk: cocopapa
Youtube: apapococ
Facebook: andibecker
Flickr: andibecker

On Nov 18, 2015, at 10:42, Manami Hashi <> wrote:


As for matter of the title,
according to this link
the official strategy of Odoo seems to be to keep DB connections open.

I tested and found out the following things:
- when the number of connections reaches the limit of 'db_maxconn', it seems that the oldest connections are automatically closed.
- the number of connection limit can be extended to 'db_maxconn' * 'workers'.


Manami Hashi
Rooms For (Hong Kong) Limitd
Phone: +852-3483-1950
Mobile: +852-6177-2085

On 11/9/2015 5:20 PM, Manami Hashi wrote:
<blockquote cite="" type="cite"> Hi,

Our customer using Amazon RDS as the DB server receives DB connection leaks and their Odoo hangs up.
According to the old thread, the official strategy is to keep connections to DB open, isn't it?

And, is the only way to avoid DB connection leaks limiting the value of db_maxconn? Do you have any ideas?

Manami Hashi
Rooms For (Hong Kong) Limitd
Phone: +852-3483-1950
Mobile: +852-6177-2085

Post to: