pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Listening Platform <listening.platform@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5829: No buffer Space Available(maximum connection reached?) from postgres edb driver
Date: Tue, 11 Jan 2011 09:41:10 GMT
Message-ID: <201101110941.p0B9fAu7093760@wwwmaster.postgresql.org> (raw)


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
Details: 

Hi,

We are facing an exception while connecting to database through our
application. The stack trace is as follows

com.edb.util.PSQLException: The connection attempt failed.
	at
com.edb.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryIm
pl.java:189)
	at
com.edb.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
	at
com.edb.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:16
1)
	at
com.edb.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30
)
	at com.edb.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
	at com.edb.Driver.makeConnection(Driver.java:391)
	at com.edb.Driver.connect(Driver.java:266)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)
	... 12 more
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.<init>(Unknown Source)
	at java.net.Socket.<init>(Unknown Source)
	at com.edb.core.PGStream.<init>(PGStream.java:70)
	at
com.edb.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryIm
pl.java:115)
	... 20 more


When the error occured we were not able to connect to internet and DB and
had to reboot the system.But the error occured again after 3 days at same
code i.e while connecting to DB.We checked TCP connections using netstat.
But there were not many TCP connections i.e it has not reached the max
limit.

Our application has multiple long running Java processes that pools the DB
connections (not more than 60) and keeps it alive for firing the next query
(as it has to poll the DB every 2 seconds).Some of the queries in our
application are joining large tables(10 million records) to get the related
data. 

We are using following System and applications  
Windows 2003 server SP2 
Java 1.6
Postgres Plus Advanced server 8.4   Database
edb-jdbc14.jar driver for connection DB from Java

We have used the default configuration of Postgres DB except increasing the
connection to 120 from 100. 

Has anybody encountred the same error with postgres edb driver?
Can anybody help us finding the solution?



view thread (2+ messages)  latest in thread

Message-ID: <201101110941.p0B9fAu7093760@wwwmaster.postgresql.org>
Permalink:  ../201101110941.p0B9fAu7093760@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201101110941.p0B9fAu7093760@wwwmaster.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: listening.platform@gmail.com
  Subject: Re: BUG #5829: No buffer Space Available(maximum connection reached?) from postgres edb driver
  In-Reply-To: <201101110941.p0B9fAu7093760@wwwmaster.postgresql.org>
  References: <201101110941.p0B9fAu7093760@wwwmaster.postgresql.org>

* 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