Re: idle in transaction query makes server unresponsive

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Scot Kreienkamp *EXTERN*" <SKreien(at)la-z-boy(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: idle in transaction query makes server unresponsive
Date: 2012-09-27 07:42:59
Message-ID: D960CB61B694CF459DCFB4B0128514C20874C0AE@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scot Kreienkamp wrote:
>> You could try to "strace" the postmaster during a connection attempt
>> and see what happens. Maybe that helps to spot the place where
>> things go wrong.

> [Scot Kreienkamp]
> I'm willing to give it a try, but I've never done it before. What do
I need to do?

"man strace" is your friend. Assuming you are on Linux.

Find out the process ID of the postmaster process
(the parent of the other PostgreSQL processes),
then try

strace -f -o /some/large/directory/tracefile -p process_id

The connect to PostgreSQL and see what gets logged.

Press Ctrl+C to stop strace.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Travers 2012-09-27 07:48:04 Re: idle in transaction query makes server unresponsive
Previous Message Andres Freund 2012-09-27 06:59:09 Re: Memory issues