| От | Tom Lane |
|---|---|
| Тема | Re: [NOVICE] General Performance questions |
| Дата | |
| Msg-id | 17571.1047311126@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | General Performance questions ("Delao, Darryl W" <ddelao@ou.edu>) |
| Список | pgsql-general |
"Delao, Darryl W" <ddelao@ou.edu> writes:
> I will have anywhere from 5 to 7 of these going at any given time. However
> most say TIME_WAIT instead of established.
TIME_WAIT is a closed connection; the kernel is only remembering it for
a few seconds in case the other end requests a retransmission of the
last few outgoing bytes. This is not blocking you from creating new
sessions.
Better ways to keep track of active database sessions are grepping the
output of "ps" for postgres processes, or watching the pg_stat_activity
system view.
> Also, is there a way to make the TIME_WAIT status shorter.
Not without violating the TCP specs.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера