Search Postgresql Archives

What could keep a connection / query alive?

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

 



Hi folks,

I'm investigating (using 8.2) an instance of a database client connection remaining open in a single query well past statement timeout settings.  I understand that severed TCP connections can cause the backend to hang until the connection is closed, but our tcp keepalive settings should have recognized that condition after about 30 minutes.  The connection and backend didn't terminate for nearly 90 minutes.

What can cause this?  Why would these tcp and statement timeout settings not terminate the backend?

Active Query Time (from pg_stat_activity): 01:27:44 - 00 days
Statement Timeout: 2 minutes
tcp_keepalives_idle=20min
(count and interval set to 0, using system defaults)

system keepalive settings are default for Linux, being:
count: 9
interval: 75

Expect severed connections to be detected within 20 min + 9*75s < 32min.

Thanks,

Derrick


[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