Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 72240637579 for ; Tue, 18 Aug 2009 13:22:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 78453-09 for ; Tue, 18 Aug 2009 16:21:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from n79.bullet.mail.sp1.yahoo.com (n79.bullet.mail.sp1.yahoo.com [98.136.44.39]) by mail.postgresql.org (Postfix) with SMTP id 1FD5763754B for ; Tue, 18 Aug 2009 13:21:55 -0300 (ADT) Received: from [216.252.122.218] by n79.bullet.mail.sp1.yahoo.com with NNFMP; 18 Aug 2009 16:21:54 -0000 Received: from [69.147.65.152] by t3.bullet.sp1.yahoo.com with NNFMP; 18 Aug 2009 16:21:53 -0000 Received: from [127.0.0.1] by omp400.mail.sp1.yahoo.com with NNFMP; 18 Aug 2009 16:21:53 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 979156.25788.bm@omp400.mail.sp1.yahoo.com Received: (qmail 80972 invoked by uid 60001); 18 Aug 2009 16:21:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1250612513; bh=Jowg4EVVKe5FME0+GZO6syNphxNornUAkmmRIIGMDxM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=N61zYHYiMxtUHmBnau7K/JlpWyUAa4J6+gwdKJfRK+c8Pa11J+gJPjlquFK/zfbGO6/nVrebH3yLvjki7bBupzVdfmTQdLfvQeDowueyjm+ZP2kJEPdagHOj13Q2KZDIELf05qwK2Y2NpIhWENJpD1vcchFbD0T0lwdrA2HYM+U= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=u+STD3ybBr3pkxxLW9yCA2Pisj7iD/0Dqbyn+QStiDpyyPigYwlJ9C43vCuQoRhCNxpc+MXTfQrxKy+a1to5G52TuPfPf97yLoHm/GHk10TdoDaTiTwfMBDlt3HeAeQBepHyVY12ABDoPCuV9ZcsuI/+UNUnRdwtb4Ai31LfcM0=; Message-ID: <812609.80275.qm@web43139.mail.sp1.yahoo.com> X-YMail-OSG: VMX88R0VM1maN8Ov6ncpEgFCYZqNj5Gq._FwRQ_cc0hVPSl.J2Gf5xCmSG4qow8hK7o3.Sxns_x2UZWeAm_zunROo_RuumvxDl.dHNWbzKJ4753lugq1n9Al.fZ_fExPgNh8DtQxeA99IXscSYg7x.gKZJaU7vCWKpXVgyEVBkOgxb0bnk_cawQNG4iRVu9m98cdoNn4IWC1AFApAubBALt1P4mV0yGOkSViOidyXOBARPSwJoYx7EZPyWWm6tM9eVXLYFMAsOheQVb6uqeKPGE9XvRR68Il7ywvSuCGXuiyuUszjfsWgYu2YCAkwRUp7OuEpOUr8uxxoSx8W6ef.FcMgJcUvZmwgaFURwZxDDU5XqznTgD4v5btnw-- Received: from [64.142.36.76] by web43139.mail.sp1.yahoo.com via HTTP; Tue, 18 Aug 2009 09:21:53 PDT X-Mailer: YahooMailRC/1358.27 YahooMailWebService/0.7.338.2 References: <400613.99933.qm@web43143.mail.sp1.yahoo.com> <4A897BD9.8010303@ttc-cmc.net> <169596.59170.qm@web43141.mail.sp1.yahoo.com> Date: Tue, 18 Aug 2009 09:21:53 -0700 (PDT) From: Michael Bell Subject: Re: JDBC broken connection against Postgres 8.4 To: jerome moliere Cc: pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-187039923-1250612513=:80275" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200908/35 X-Sequence-Number: 19884 --0-187039923-1250612513=:80275 Content-Type: text/plain; charset=us-ascii Probably, but I'm hesistant to for several reasons 1. End users will cry. :) This is part of commercial product. Of course they cry more if current condition is there, so that's kind of lame argument., 2. I don't know TCP tuning much, but it seems to me your suggestion is a very good one if the code I posted was typical of usage. It isn't - it was just an easy way to expose the issue. Typical usage is with a Connection pool, initially set to 5 connections. And I'm getting issues with my single box test, which is hardly a load. Since in this scenario the JDBC Connections are pooled and stick around "forever" (or at least a long time w/o network issues/timeouts), I wouldn't think TIME-WAIT is relevant, right? That's only relevant to opening and tearing down tcp connections in rapid succession (eg like in my loop). Or am I showing the limits of my tcpip knowledge? For now I'm' going to try to figure out the wire trace issues. Keep in mind this is not just me :) . On this list back in Feb, some one had the exact same issue. And about a year ago a possibly similar issue (it was blocking on input indefinitely in the same code area, which is worse really) Does anyone really know of some one who has tested this driver/server combo highly on Windows ? ________________________________ From: jerome moliere To: Michael Bell Cc: dmp ; pgsql-jdbc@postgresql.org Sent: Tuesday, August 18, 2009 4:56:57 AM Subject: Re: [JDBC] JDBC broken connection against Postgres 8.4 2009/8/17 Michael Bell >I am not surprised. I strongly suspect this is an issue with Windows/PostgresSQL. OTOH, I did most of my testing against Postgres 8.4 server. > > > >Hi all, coul you fine tune your TCP/IP stack, trying to set a lower value for the TIME-WAIT paremeter HTH Jerome -- Jerome Moliere - Mentor/J http://romjethoughts.blogspot.com/ auteur Eyrolles --0-187039923-1250612513=:80275 Content-Type: text/html; charset=us-ascii
Probably, but I'm hesistant to for several reasons

1. End users will cry. :) This is part of commercial product. Of course they cry more if current condition is there, so that's kind of lame argument.,
2. I don't know TCP tuning much, but it seems to me your suggestion is a very good one if the code I posted was typical of usage. It isn't - it was just an easy way to expose the issue. Typical usage is with a Connection pool, initially set to 5 connections. And I'm getting issues with my single box test, which is hardly a load. Since in this scenario the JDBC Connections are pooled and stick around "forever" (or at least a long time w/o network issues/timeouts), I wouldn't think TIME-WAIT is relevant, right? That's only relevant to opening and tearing down tcp connections in rapid succession (eg like in my loop). Or am I showing the limits of my tcpip knowledge?

For now I'm' going to try to figure out the wire trace issues.

Keep in mind this is not just me :) . On this list back in Feb, some one had the exact same issue. And about a year ago a possibly similar issue (it was blocking on input indefinitely in the same code area, which is worse really)

Does anyone really know of some one who has tested this driver/server combo highly on Windows ?










From: jerome moliere <jerome.moliere@gmail.com>
To: Michael Bell <mikebell90@yahoo.com>
Cc: dmp <danap@ttc-cmc.net>; pgsql-jdbc@postgresql.org
Sent: Tuesday, August 18, 2009 4:56:57 AM
Subject: Re: [JDBC] JDBC broken connection against Postgres 8.4



2009/8/17 Michael Bell <mikebell90@yahoo.com>
I am not surprised. I strongly suspect this is an issue with Windows/PostgresSQL. OTOH, I did most of my testing against Postgres 8.4 server.


Hi all,
coul you fine tune your TCP/IP stack, trying to set a lower value for the TIME-WAIT paremeter

HTH
Jerome

--
Jerome Moliere - Mentor/J
http://romjethoughts.blogspot.com/
auteur Eyrolles

--0-187039923-1250612513=:80275--