From: | Craig Ringer <ringerc(at)ringerc(dot)id(dot)au> |
---|---|
To: | Sean Laurent <sean(at)studyblue(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgres 9.01, Amazon EC2/EBS, XFS, JDBC and lost connections |
Date: | 2011-10-10 13:09:35 |
Message-ID: | 4E92EE8F.8010701@ringerc.id.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 10/07/2011 01:21 AM, Sean Laurent wrote:
> Within a few seconds of the backup, our application servers start
> throwing exceptions that indicate the database connection was closed.
> Meanwhile, Postgres still shows the connections and we start seeing a
> really high number (for us) of locks in the database. The application
> servers refuse to recover and must be killed and restarted. Once they're
> killed off, the connections actually go away and the locks disappear.
Did you have any luck with this?
This sort of thing sounds a lot like "deadlock" ... but I'm not really
sure how Pg's backends/postmaster could get into a deadlock with each
other. It'd be interesting to look at "wchan" in ps to see what the Pg
processes are waiting on.
Also, check to see if you can connect with `psql' on a local unix socket
and on a local tcp/ip socket.
Can you reproduce this on a non-EC2 system?
--
Craig Ringer
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2011-10-10 13:23:16 | Re: Select latest Timestamp values with group by |
Previous Message | Adarsh Sharma | 2011-10-10 12:32:05 | Select latest Timestamp values with group by |