Re: dangling connections

Поиск
Список
Период
Сортировка
От Daryl Stultz
Тема Re: dangling connections
Дата
Msg-id CANYnOKQQgyFOudDqiEn8yDrU41J-cvhUNhX=D7GoyuNNn5nTWQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: dangling connections  (Daryl Stultz <daryl.stultz@opentempo.com>)
Список pgsql-admin


On Wed, May 16, 2012 at 7:38 AM, Daryl Stultz <daryl.stultz@opentempo.com> wrote:

On Tue, May 15, 2012 at 3:31 AM, Sergey Konoplev <gray.ru@gmail.com> wrote:

select client_addr, client_port from pg_stat_activity;


My system failed again last night. After shutting down Tomcat netstat shows the machine having a dozen or so connections in FIN_WAIT1 state. I guess this just means they are in the process of shutting down. I didn't check again later to see if they went away.

With tomcat shut down, I ran the suggested query against PG. I also ran netstat on the database server. Both showed active connections (ESTABLISHED in the case of netstat) with the app server. Netstat on the app server shows no connections for the ports listed by the DB server. Checking on things the next morning I find that the app server has connections to the database server that the database server doesn't think it has open.

Anyone have any ideas?

Thanks.

/Daryl

--
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
http://www.opentempo.com
mailto:daryl.stultz@opentempo.com

В списке pgsql-admin по дате отправления:

Предыдущее
От: Robert Bruccoleri
Дата:
Сообщение: Problem with SSL certificate setup; please disregard -- solution found.
Следующее
От: Vincent Dautremont
Дата:
Сообщение: out of memory error