Re: Too much clients connected to the PostgreSQL Database

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Too much clients connected to the PostgreSQL Database
Дата
Msg-id 20121029205805.306890@gmx.com
обсуждение исходный текст
Ответ на Too much clients connected to the PostgreSQL Database  (Rodrigo Pereira da Silva <rodrigo@paripassu.com.br>)
Ответы Re: Too much clients connected to the PostgreSQL Database  (rodrigo@paripassu.com.br)
Список pgsql-general
Rodrigo Pereira da Silva wrote:

> We have about 10 web applications deployed in a Tomcat 7.0
> accessing a Postgresql 9.1 database. We do use connection pooling.
> We have the max_connections parameter set to 200 connections,
> however, we are reaching the max connections sporadically(about 4
> time/day).

What is the pooler's maxActive setting? (It should be less than the
PostgreSQL max_connections setting.)

BTW, 200 seems alwfully high unless a *really* high end machine.  You
may have fewer timeouts if you avoid swamping the server with a
"thundering herd" of requests.

http://wiki.postgresql.org/wiki/Number_Of_Database_Connections

-Kevin


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

Предыдущее
От: Rodrigo Pereira da Silva
Дата:
Сообщение: Too much clients connected to the PostgreSQL Database
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: How to print application_name in log_line_prefix (using %a)?