pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Ryan <postgres@weblynk.com>
To: pgsql-interfaces@postgreSQL.org
Subject: Inifinite socket send from backend to java servlet
Date: Tue, 02 Nov 1999 20:58:27 -0800
Message-ID: <00ab01bf25b8$1192b260$9befaace@usedcars.com> (raw)
References: <381978E3352.179CSAKAIDA@smtp.psn.ne.jp>

I'm running RH Linux 5.2, Jdk 1.1.7v3 on machine A, and RH Linux 6.1,
postgres 6.5.2 on machine B. Some queries made from A to B never return. It
looks like the java servlet on machine A skipped out on the query or the
thread died or got interrupted or something, and machine B is infinitely
waiting for it to read query results. Doing a ps -x will show several
postmaster processes doing SELECT's, but just sitting there, ( not SELECT
waiting), but not consuming any cpu time either. When I restart the web
server on machine A and then immediately look at the postgres log file on
machine B, I get a ton of these messages...

FATAL: pq_endmessage failed: errno=32
pq_flush: send() failed: Broken pipe

Within a half day or so, my database connection pool is exhausted because
there taken up by these infinite waits. Of course, I could write a db
connection timeout thread that closes these lazy connections, and I suspect
that the postmaster processes on machine B would detect the broken
connection and go away also, but still... seems like pretty icky behavior.
Any comments?
Rich





view thread (3+ messages)  latest in thread

Message-ID: <00ab01bf25b8$1192b260$9befaace@usedcars.com>
Permalink:  ../00ab01bf25b8$1192b260$9befaace@usedcars.com/
Also on:    postgresql.org/message-id/00ab01bf25b8$1192b260$9befaace@usedcars.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: postgres@weblynk.com
  Subject: Re: Inifinite socket send from backend to java servlet
  In-Reply-To: <00ab01bf25b8$1192b260$9befaace@usedcars.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox