Re: Postgres timeouts?

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: "bweishoff(at)charter(dot)net" <bweishoff(at)charter(dot)net>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres timeouts?
Date: 2013-08-14 14:25:57
Message-ID: 1376490357.41072.YahooMailNeo@web162904.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"bweishoff(at)charter(dot)net" <bweishoff(at)charter(dot)net> wrote:

> I'm having an interesting issue with PGSQL.   It seems that I'm
> experiencing timeouts at various times.   The servers are not
> busy and have plenty of resources.  The databases are ~50GB in
> size, the systems typically have 8-12GB physical RAM, and the
> connections are low (less than 15 at any given time).
>
> The issue I'm seeing is that randomly I'm getting these pauses,
> or stalls, while trying to simply connect to the database
> server(s) from connected clients using the psql command line
> client.  I cannot tell if the server is even getting the request
> for service as they don't seem to show up in the logs at the time
> the event is occurring, so I'm thinking it's maybe a client-side
> issue.
>
> Is there a good general starting place for debugging these types
> of issues ?

You didn't give much detail to narrow the possible causes.  You
might want to read this before posting again:

http://wiki.postgresql.org/wiki/Guide_to_reporting_problems

That said, I have seen a lot of people reporting similar problems
on Linux lately due to Transparent Huge Page (THP) defragmentation.
If you are running on Linux and you see high system CPU time during
an episode, the odds are high that this is the cause.  Details of
how to deal with it vary among distributions.  I have sometimes
seen people try to deal with this by disabling THP defrag, but in
those cases I have always seen them go back and totally disable THP
support.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2013-08-14 16:01:46 Re: Materializing a view by hand
Previous Message Adrian Klaver 2013-08-14 13:25:55 Re: Please help