Re: PROBLEM Service Alert: hostname/check_postgres_old_transaction is CRITICAL **

From: Jan-Pieter Cornet <johnpc(at)xs4all(dot)net>
To: Adarsh Sharma <eddy(dot)adarsh(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: PROBLEM Service Alert: hostname/check_postgres_old_transaction is CRITICAL **
Date: 2014-09-19 22:47:29
Message-ID: 541CB281.1020408@xs4all.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2014-9-19 20:33 , Adarsh Sharma wrote:
> It returns approx *311 MB* data to the client servers.
>
> root > netstat -p | grep 45355
> tcp 0 1531648 localhost:5499 localhost:48848 ESTABLISHED 45355/postgres
>
> root > strace -p 45355
> -- Remain stuck for *2-3 *hours
> read(306, "\30\0kB\3\0\0\0\0\0\377\5\0\0\26\0\0\0\2\0\0\0\30\0+\264\3\0\0\0\0\0"..., 8192) = 8192
> sendto(10, "4174\0\0\0\0041535D\0\0\0\30\0\2\0\0\0\006248710\0\0\0"..., 8192, 0, NULL, 0
>
> Then after 2-3 hours it got completed automatically with below stacktrace :
>
> # strace -p 45355
> Process 45355 attached - interrupt to quit
> sendto(10, "4174\0\0\0\0041535D\0\0\0\30\0\2\0\0\0\006248710\0\0\0"..., 8192, 0, NULL, 0
>
> ) = -1 ECONNRESET (Connection reset by peer)

I'd guess that the receiving program crashes. It might not be able to stomach the 311 MB that's being sent to it, maybe it's expanding, and swapping, until it's killed by the OOM killer?

Doesn't look like a postgres problem to me. postgres is stuck trying to send data... try stracing the client to see what it does? (use "lsof -i :48848" or whatever the port number of the remote is to find the pid).

--
Jan-Pieter Cornet <johnpc(at)xs4all(dot)net>
"Any sufficiently advanced incompetence is indistinguishable from malice."
- Grey's Law

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Travers 2014-09-20 02:42:37 Re: Why isn't Java support part of Postgresql core?
Previous Message Tatsuo Ishii 2014-09-19 22:26:55 Oleg's talk in Japan