Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Connection pool exhausted

c157

2004-06-02


Hi all,
I am dveloping small application which uses JDBC connection pool.
This pool I configured according howto on Tomcat's pages.
Sometimes I get below mentioned exception: Connection pool
exhausted. Could you give me any advice?
My configuration:
Tomcat 5.0/24
DB on localhost MySQL Distrib 4.0.17, for sun-solaris2.9 (sparc)
Thanks,
Petr

javax.servlet.ServletException:
org.apache.commons.dbcp.SQLNestedException: Cannot get a
connection, pool exhausted, cause: Timeout waiting for idle
object
org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:758)
org.apache.jsp.jsp.Catalog_jsp._jspService(Catalog_jsp.java:202)
org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service (HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:298)
org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service (JspServlet.java:236)
javax.servlet.http.HttpServlet.service (HttpServlet.java:810)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:322)  cz.shop.Controller.Dispatcher.goForward(Dispatcher.java:155)
cz.shop.Controller.Dispatcher.processRequest(Dispatcher.java:88)  cz.shop.Controller.Dispatcher.doGet(Dispatcher.java:166)  javax.servlet.http.HttpServlet.service (HttpServlet.java:697)  javax.servlet.http.HttpServlet.service (HttpServlet.java:810)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:322)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.