Search Postgresql Archives

Re: PGconn gets frozen ocassionally after select() timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marek Peca <marek@xxxxxxx> writes:
> The problem: most of time, everything works fine, hundreds of successful 
> or even timed-out selects() get handled without any problem. But time to 
> time (eg. after several hours), the select() call returns with a timeout 
> and then, a request to the opened PQconn (simple query) gets stuck, the 
> call hangs and never returns.

What that sounds like is a network-level problem.  In particular, if
there's a NAT-capable router between your client and server machines,
it's probably dropping the connection after a certain period of
inactivity.  You may be able to fix this within Postgres by adjusting
the server's tcp_keepalives_idle setting.  If the server is on a
platform that doesn't support changing the keepalive interval, the
only recourse is to fix the router.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux