Re: Sudden crazy high CPU usage

From: Niels Kristian Schjødt <nielskristian(at)autouncle(dot)com>
To: Will Platnick <wplatnick(at)gmail(dot)com>
Cc: "pgsql-performance(at)postgresql(dot)org list" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Sudden crazy high CPU usage
Date: 2014-04-01 21:50:59
Message-ID: AC7A3740-68AF-42A1-A9CF-3F70ECF54A3C@autouncle.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Sorry, but nothing unusual here either, I have compared the time just before with the same time the days before and the throughput pattern is exactly the same. No differences.

Den 31/03/2014 kl. 22.01 skrev Will Platnick <wplatnick(at)gmail(dot)com>:

>
> In New Relic, go back a half hour before the problem started so you can't see that this spike happened and send the same screenshot in. My guess is you have increased activity hitting the DB. Do you have pgbouncer or some kind of connection pooling sitting in front? 198 open server connections could account for an increase in load like you're seeing. Do you have postgresql addon in New Relic to show you how many queries are hitting the system to correlate data to?
>
> On Mon, Mar 31, 2014 at 1:36 PM, Sergey Konoplev <gray(dot)ru(at)gmail(dot)com> wrote:
> On Mon, Mar 31, 2014 at 3:25 AM, Niels Kristian Schjødt
> <nielskristian(at)autouncle(dot)com> wrote:
> > I'm running postgresql 9.3 on a production server. An hour ago, out of the "blue", I ran into an issue I have never encountered before: my server started to use CPU as crazy. The server is a standard ubuntu 12.04 LTE installation running only Postgres and Redis.
> >
> > The incident can be seen on the in numbers below:
> >
> > https://s3-eu-west-1.amazonaws.com/autouncle-public/other/cpu.png
>
> The increase doesn't look so sudden. My guess is that the server got
> some new activity. The advice is to setup the statistics collecting
> script by the link [1] and review the results for a period of hour or
> so. It shows charts of statements by CPU/IO/calls with aggregated
> stats, so you could probably find out more than with pure
> pg_stat_statements.
>
> [1] https://github.com/grayhemp/pgcookbook/blob/master/statement_statistics_collecting_and_reporting.md
>
> --
> Kind regards,
> Sergey Konoplev
> PostgreSQL Consultant and DBA
>
> http://www.linkedin.com/in/grayhemp
> +1 (415) 867-9984, +7 (901) 903-0499, +7 (988) 888-1979
> gray(dot)ru(at)gmail(dot)com
>
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Andres Freund 2014-04-01 22:16:53 Re: Sudden crazy high CPU usage
Previous Message Will Platnick 2014-03-31 20:01:38 Re: Sudden crazy high CPU usage