DBCP borrowObject failed

Started by Azam .almost 23 years ago2 messagesbugs
Jump to latest
#1Azam .
azam1980ir@yahoo.com

hi all

I don't know if this is the right list to ask this question or not but however I'm using postgres and tomcat4.1.24, I got this error

DBCP borrowObject failed: Something unusual has occured to cause the driver to fail. Please report this exception: Exception: java.sql.SQLException: FATAL 1: Sorry, too many clients already
Stack Trace:
java.sql.SQLException: FATAL 1: Sorry, too many clients already
at org.postgresql.Connection.openConnection(Connection.java:274)
at org.postgresql.Driver.connect(Driver.java:149)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:83)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown Source)
at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(P....

and after I restarted tomcat It was corrected,Is there anything wrong?This is the content of my postmaster.opts
/usr/bin/postmaster '-i' '-N' '64' '-B' '256'

Thanks in advance
azam

---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Azam . (#1)
Re: DBCP borrowObject failed

"Azam ." <azam1980ir@yahoo.com> writes:

DBCP borrowObject failed: Something unusual has occured to cause the
driver to fail. Please report this exception: Exception:
java.sql.SQLException: FATAL 1: Sorry, too many clients already

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Time to increase the postmaster's MAX_CONNECTIONS setting.

regards, tom lane