pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Jonas Partner <jonas.partner@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Write to outputstream in PGStream blocks indefinitely
Date: Mon, 04 Jul 2005 20:52:38 +1200
Message-ID: <42C8F8D6.8040100@opencloud.com> (raw)
In-Reply-To: <9b8dd34605070401153340015c@mail.gmail.com>
References: <9b8dd34605070401153340015c@mail.gmail.com>

Jonas Partner wrote:
> I am having a problem where by my application freezes after a period
> of time under load.  Doing a thread dump shows a large number of
> threads seem to be attempting to write to output streams as shown
> below.  The application code is attempting to add a single row to a
> table, including binary data of between 3kb - 10kb. This requires a
> restart of the application to clear.
> 
> Has anyone else seen similar behaviour?  Could this be related to the
> issue discussed in
> http://archives.postgresql.org/pgsql-jdbc/2004-12/msg00096.php where
> the server and driver are filling their respective buffers.  If so
> what is the best approach to reducing the likelyhodd of this
> happening.

It seems unlikely that this is the cause if you're only doing a single
update..

Things to try:

- Add '?logLevel=2' to your connection URL -- this should spew lots of
driver debug info to stderr.

- If the data's not sensitive, grab a tcpdump capture (-s 1514 -w
/some/output/file) of a connection that hangs and send me a copy (off-list).

- Attach gdb to the corresponding backend to see what it is doing when
everything stops. Perhaps it's got stuck waiting for a lock, or
something similar?

-O



view thread (2+ messages)

Message-ID: <42C8F8D6.8040100@opencloud.com>
Permalink:  ../42C8F8D6.8040100@opencloud.com/
Also on:    postgresql.org/message-id/42C8F8D6.8040100@opencloud.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, jonas.partner@gmail.com
  Subject: Re: Write to outputstream in PGStream blocks indefinitely
  In-Reply-To: <42C8F8D6.8040100@opencloud.com>
  References: <9b8dd34605070401153340015c@mail.gmail.com> <42C8F8D6.8040100@opencloud.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