X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 16E9F52802 for ; Mon, 4 Jul 2005 05:15:22 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62523-07 for ; Mon, 4 Jul 2005 08:15:13 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by svr1.postgresql.org (Postfix) with ESMTP id C86465281F for ; Mon, 4 Jul 2005 05:15:09 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i25so659123wra for ; Mon, 04 Jul 2005 01:15:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Kz1zxV+HI/QJvS3RKwdkbZwthquf4siFBtdMOBXg/+PuTFz//v7JE54FgWP6auENnov/9KucoD1qXOG3Upn7n+BNFt/h+LPJ7L1UnVngI/vOlUeLhvU+fGuFWVX2AbWPvSxaLxZkc1Qe3UR6TehqCR5748HLkxh43MG4NrCnJxc= Received: by 10.54.15.38 with SMTP id 38mr3575654wro; Mon, 04 Jul 2005 01:15:12 -0700 (PDT) Received: by 10.54.126.10 with HTTP; Mon, 4 Jul 2005 01:15:11 -0700 (PDT) Message-ID: <9b8dd34605070401153340015c@mail.gmail.com> Date: Mon, 4 Jul 2005 09:15:12 +0100 From: Jonas Partner Reply-To: Jonas Partner To: pgsql-jdbc@postgresql.org Subject: Write to outputstream in PGStream blocks indefinitely Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200507/12 X-Sequence-Number: 13160 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. This occurs using PostgreSQL 8.0.3 with JDBC driver version 8.0-311. Regards Jonas "Thread-49" prio=3D5 tid=3D0x00488d08 nid=3D0x1397 runnable [cc77e000..cc77= fc28] at org.postgresql.core.PGStream.Send(PGStream.java:207) at org.postgresql.core.PGStream.SendStream(PGStream.java:479) at org.postgresql.core.v3.SimpleParameterList.streamBytea(SimplePara= meterList.java:118) at org.postgresql.core.v3.SimpleParameterList.writeV3Value(SimplePar= ameterList.java:201) at org.postgresql.core.v3.QueryExecutorImpl.sendBind(QueryExecutorIm= pl.java:816) at org.postgresql.core.v3.QueryExecutorImpl.sendOneQuery(QueryExecut= orImpl.java:1008) at org.postgresql.core.v3.QueryExecutorImpl.sendQuery(QueryExecutorI= mpl.java:599) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImp= l.java:173) - locked <0xd616e6c0> (a org.postgresql.core.v3.QueryExecutorImpl) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2= Statement.java:389) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(Abst= ractJdbc2Statement.java:330) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(Abstrac= tJdbc2Statement.java:282)