Re: Debugging Postgres?

From: "Dennis" <dennis(at)kabonkulator(dot)com>
To: "'Barth Weishoff'" <bweishoff(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Debugging Postgres?
Date: 2013-08-15 05:02:53
Message-ID: 000601ce9974$b3130fb0$19392f10$@kabonkulator.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

tcpdump and/or wireshark will help with detecting network issues.
Wireshark is a little easier to grok if you are not used to doing packet
dumps. http://www.wireshark.org/

Dennis

From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Jayadevan M
Sent: Wednesday, August 14, 2013 9:14 PM
To: Barth Weishoff
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Debugging Postgres?

Hi,

Having a look at the PostgreSQL log may help.
http://stackoverflow.com/questions/722221/how-to-log-postgres-sql-queries

You could also try logging in via psql on the database host itself, to
ensure it is not a network issue.

Regards,

Jayadevan

On Wed, Aug 14, 2013 at 2:21 AM, Barth Weishoff <bweishoff(at)gmail(dot)com> wrote:

Hello

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 ?

-B.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Shutyaev 2013-08-15 05:40:54 vacuumdb uses a lot of disk
Previous Message John R Pierce 2013-08-15 04:39:22 Re: Getting list of supported types in Postgres