Re: Sudden slow down and spike in system CPU causes max_connections to get exhausted

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Sudden slow down and spike in system CPU causes max_connections to get exhausted
Дата
Msg-id CAOR=d=1D2yUCi797OG1JqjwWyX8wCLH=6LnLr7pRKoJU=wzEXQ@mail.gmail.com
обсуждение исходный текст
Ответ на Sudden slow down and spike in system CPU causes max_connections to get exhausted  ("Anand Kumar, Karthik" <Karthik.AnandKumar@classmates.com>)
Список pgsql-general
On Mon, Jan 6, 2014 at 6:06 PM, Anand Kumar, Karthik
<Karthik.AnandKumar@classmates.com> wrote:
> Hi,
>
> We run postgres 9.1.11, on Centos 6.3, and an ext2 filesystem
>
> Everything will run along okay, and every few hours, for about a couple of
> minutes, postgres will slow way down. A "select 1" query takes between 10
> and 15 seconds to run, and the box in general gets lethargic.
>
> This causes a pile up of connections at the DB, and we run out of
> max_connections.
>
> This is accompanied with a steep spike in system CPU and load avg. No spike
> in user CPU or in I/O.

As well as the previously mentioned huge pages thing, also look at vm
dirty ratio:

http://www.westnet.com/~gsmith/content/linux-pdflush.htm


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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: How to know server status variable in postgresql?
Следующее
От: Rajeev rastogi
Дата:
Сообщение: Re: Consistent file-level backup of pg data directory