Re: [PERFORM] SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object

From: Vitalii Tymchyshyn <tivv00(at)gmail(dot)com>
To: itishree sukla <itishree(dot)sukla(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-performance(at)postgresql(dot)org
Subject: Re: [PERFORM] SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
Date: 2013-04-18 21:17:39
Message-ID: CABWW-d3gp90G==it=PhB9PvmF1bHZz-NJc4ZiPBZ5GsKHgtFyQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

I'd say you either have overloaded application (try increasing timeout),
too small pool (increase pool) or connection leaks (find and fix).
18 квіт. 2013 23:45, "itishree sukla" <itishree(dot)sukla(at)gmail(dot)com> напис.

> Dear All,
>
> Can any one please help me to fix this issue, i am getting this error from
> our application, currently Database is running on 9.2.
>
> 2013-04-17 11:37:25:151 - {ERROR} database.ConnectionManager Thread
> [http-8080-1]; --- getConnection() Exception:
> org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool
> error Timeout waiting for idle object
> at
> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:114)
> at
> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
> at
> com.tenkinfo.b2g.database.ConnectionManager.getConnection(ConnectionManager.java:39)
> at
> com.tenkinfo.b2g.usermanagement.dao.UserManagementDAOImpl.getSessionData(UserManagementDAOImpl.java:228)
> at
> com.tenkinfo.mapnsav.common.action.BaseAction.execute(BaseAction.java:156)
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
> at
> org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
>
> Do i have to set tcp _keepalive * paramter to less sec, or need to kill
> the idle connection ?
>
> Regards,
> Itishree
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message François Beausoleil 2013-04-18 22:09:00 Re: PQgetCopyData() failed - corruption?
Previous Message Tom Lane 2013-04-18 20:02:53 Re: PQgetCopyData() failed - corruption?

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2013-04-18 21:42:15 Re: Query planner ignoring constraints on partitioned tables when joining
Previous Message ktm@rice.edu 2013-04-18 20:54:08 Re: High CPU usage buy low I/O wait