Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9386A1337B6E for ; Fri, 14 Jan 2011 02:23:41 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 04115-01 for ; Fri, 14 Jan 2011 06:23:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id 1958C1336B42 for ; Fri, 14 Jan 2011 02:23:34 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id A0D53149F; Fri, 14 Jan 2011 01:23:33 -0500 (EST) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NeDA8cvXKhDG; Fri, 14 Jan 2011 01:23:33 -0500 (EST) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id AEB9F3E; Fri, 14 Jan 2011 01:23:32 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 711B9AF479; Fri, 14 Jan 2011 14:23:31 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6gC8QolLMW8h; Fri, 14 Jan 2011 14:23:25 +0800 (WST) Received: from [10.1.1.5] (58-7-214-236.dyn.iinet.net.au [58.7.214.236]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 194ACAF477; Fri, 14 Jan 2011 14:23:24 +0800 (WST) Message-ID: <4D2FEBDB.3030509@postnewspapers.com.au> Date: Fri, 14 Jan 2011 14:23:23 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 MIME-Version: 1.0 To: Listening Platform CC: pgsql-bugs@postgresql.org Subject: Re: BUG #5829: No buffer Space Available(maximum connection reached?) from postgres edb driver References: <201101110941.p0B9fAu7093760@wwwmaster.postgresql.org> In-Reply-To: <201101110941.p0B9fAu7093760@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/99 X-Sequence-Number: 29121 On 01/11/2011 05:41 PM, Listening Platform wrote: > > The following bug has been logged online: > > Bug reference: 5829 > Logged by: Listening Platform > Email address: listening.platform@gmail.com > PostgreSQL version: 8.4 AS > Operating system: Windows 2003 server SP2 > Description: No buffer Space Available(maximum connection reached?) > from postgres edb driver > Caused by: java.net.SocketException: No buffer space available (maximum > connections reached?): connect > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(Unknown Source) > at java.net.PlainSocketImpl.connectToAddress(Unknown Source) > at java.net.PlainSocketImpl.connect(Unknown Source) > at java.net.SocksSocketImpl.connect(Unknown Source) > at java.net.Socket.connect(Unknown Source) > at java.net.Socket.connect(Unknown Source) > at java.net.Socket.(Unknown Source) > at java.net.Socket.(Unknown Source) > at com.edb.core.PGStream.(PGStream.java:70) > at > com.edb.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryIm > pl.java:115) > ... 20 more It'd be nice to have those "20 more". Java's habit of truncating exception stack traces is one of the more annoying things it does. In this case, though, it seems pretty likely that you > When the error occured we were not able to connect to internet and DB Hang on ... you mean that you were unable to access Internet services from the machine either? Were you able to connect to the running PostgreSQL database via "psql" or via PgAdmin III? Were there any error messages in the postgresql log files? What about ICMP ping? traceroute ("tracert" on Windows) to Internet hosts? To your local gateway / nexthop router? etc. > We checked TCP connections using netstat. > But there were not many TCP connections i.e it has not reached the max > limit. What is "not many" in this context? Which limit? you know that the operating system imposes its own limit on the number of TCP/IP connections that may exist, right? That limit includes connections that are half-open or closing as well as regular open/established connections. > Java 1.6 Java SE 6? Java EE 6? There is no such thing as "java 1.6". -- Craig Ringer