Connections don't time out.
От | Rainer Mager |
---|---|
Тема | Connections don't time out. |
Дата | |
Msg-id | 03d601bf8974$689b8ee0$1500000a@vgkk.co.jp обсуждение исходный текст |
Список | pgsql-admin |
Hi all, We're currently developing a Java application that does extensive database connections to PostgresSQL. During our testing phases we're quite often killing the application before it has a chance to properly close the database connections. In most cases Postgres seems to detect a "connect reset by peer" and closes its connections as well. Sometimes, however, this does not happen and the Postgres connections (or their associated processes) remain, seemingly, forever. When we first noticed this problem the oldest connection/process was 9 days old. The obvious problem is that as these dead connections increase we reach the point where Postgres runs out of connections. So, I was wondering if there is anyway to tell Postgres to kill a connection after a certain length of inactivity. If not, how do other people overcome this problem? BTW, we're running Postgres on a Linux box with PostgreSQL version 6.5.3. Any help would be greatly appreciated. --Rainer
В списке pgsql-admin по дате отправления: