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

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: "Anand Kumar, Karthik" <Karthik(dot)AnandKumar(at)classmates(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Sudden slow down and spike in system CPU causes max_connections to get exhausted
Date: 2014-01-08 01:31:18
Message-ID: CAOR=d=1D2yUCi797OG1JqjwWyX8wCLH=6LnLr7pRKoJU=wzEXQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 6, 2014 at 6:06 PM, Anand Kumar, Karthik
<Karthik(dot)AnandKumar(at)classmates(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rajeev rastogi 2014-01-08 03:56:57 Re: Consistent file-level backup of pg data directory
Previous Message John R Pierce 2014-01-07 23:37:15 Re: How to know server status variable in postgresql?