Re: strange pauses

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Adrian Moisey" <adrian(at)careerjunction(dot)co(dot)za>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: strange pauses
Date: 2008-01-16 15:30:48
Message-ID: dcc563d10801160730u21b55aeaqe7eaa792451492cd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Jan 16, 2008 4:42 AM, Adrian Moisey <adrian(at)careerjunction(dot)co(dot)za> wrote:
> Hi
>
> I've noticed a strange pattern in our logs.
>
> We only log anything that takes longer then 5 seconds.
>
> If I tail the logs, I see a steady stream of functions that took longer
> then 5 seconds. But every now and then I see nothing for 3 minutes and
> after that a whole bunch (about 20 - 30) queries all finishing at the
> same second.
>
> During this 3 minutes of nothing being logged, the db is still active
> and I can access our website
>
> Looks to me like "something" is "locking" and causing requests to be
> delayed. Once this "lock" unlocks, everything goes through.

Hmmm. Are these queries actually all finishing at the same time or
just showing up in the logs at the same time. Just thinking there
might be some kind of issue going on with logging. Are you using
syslog or postgresql stderr logging?

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2008-01-16 15:37:58 Re: strange pauses
Previous Message Tom Lane 2008-01-16 15:23:06 Re: strange pauses