From: Kevin Grittner <kgrittn@ymail.com>
To: gowridhar.madu@firstdata.com <gowridhar.madu@firstdata.com>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #12810: database conection drop
Date: Mon, 2 Mar 2015 15:23:36 +0000 (UTC)
Message-ID: <614818533.1136123.1425309816582.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <20150226181719.2527.84633@wrigleys.postgresql.org>
References: <20150226181719.2527.84633@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
"gowridhar.madu@firstdata.com" <gowridhar.madu@firstdata.com> wrote:
> Cannot open ReviewDb
> at com.google.gerrit.server.util.ThreadLocalRequestContext$1.provideReviewDb(ThreadLocalRequestContext.java:70)
> Caused by: com.google.gwtorm.server.OrmException: Cannot open database connection
> at com.google.gwtorm.jdbc.Database.newConnection(Database.java:130)
> Caused by: java.sql.SQLException: Cannot get a connection, general error
> at org.apache.tomcat.dbcp.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:130)
> Caused by: java.lang.InterruptedException
> at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2017)
> at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2052)
> at org.apache.tomcat.dbcp.pool2.impl.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:523)
> at org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
> at org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:358)
> at org.apache.tomcat.dbcp.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:118)
That Java stack trace looks like the exception is due to a timeout
waiting for a connection. What is in the database server log from
the same point in time? Have you perhaps allocated all of the
connections allowed by max_connections and related configuration
settings?
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: kgrittn@ymail.com, gowridhar.madu@firstdata.com
Subject: Re: BUG #12810: database conection drop
In-Reply-To: <614818533.1136123.1425309816582.JavaMail.yahoo@mail.yahoo.com>
References: <20150226181719.2527.84633@wrigleys.postgresql.org> <614818533.1136123.1425309816582.JavaMail.yahoo@mail.yahoo.com>
* 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