<div>Hi Joe,</div>
<div> I'm explicitly not opening any database connection, Problem here is OpenCms keep holding the database connection and after some time that connection become stale. This the answer I got from server administrator.
</div>
<div> </div>
<div> </div>
<div>Thanks</div>
<div>Rupesh</div>
<div> </div>
<div><strong>Re: Problem with Connection Pool </strong><a id="nabble.aflag" title="Click to flag this post" href="javascript: void Nabble.setFlag();"><span style="DISPLAY: inline-block; FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.nabble.com/images/icon_unflagged.png')">
<strong><img id="nabble.flag" onmouseover="status = alt; return true;" style="FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=0)" onmouseout="status = defaultStatus; return true;" height="15" alt="Click to flag this post" src="http://www.nabble.com/images/icon_unflagged.png" width="15" border="0">
</strong></span></a> <span style="DISPLAY: inline-block; FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.nabble.com/images/icon_star_blue.png')"><img style="FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=0)" height="12" src="http://www.nabble.com/images/icon_star_blue.png" width="12" border="0">
</span><span style="DISPLAY: inline-block; FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.nabble.com/images/icon_star_blue.png')"><img style="FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=0)" height="12" src="http://www.nabble.com/images/icon_star_blue.png" width="12" border="0">
</span><span style="DISPLAY: inline-block; FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.nabble.com/images/icon_star_blue.png')"><img style="FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=0)" height="12" src="http://www.nabble.com/images/icon_star_blue.png" width="12" border="0">
</span>
<div class="message-actions weak-color">by<span></span> <a href="http://www.nabble.com/forum/Search.jtp?user=18891" target="_top" rel="nofollow">Joe Desbonnet<span></span> </a><span class="posted-date"><span></span>2006-09-07 11:21
</span> |<span></span> <a href="http://www.nabble.com/forum/Reply.jtp?post=6192439" target="_top" rel="nofollow">Reply</a> |</div>
<div class="message-actions weak-color"> </div>
<div id="nabble.pending"></div>
<div id="nabble.msgtext">Do you have scripts that access the database? If so it's more than <br>likely that one (or more) are failing to release the connection after <br>using it. Somethings that simply because the programmer failed to
<br>close the db, sometimes because an error occurs before the close <br>statement is reached. <br><br>You should surround any block of code that gets a db handle with a <br>try/catch/finally <br>and release the handle in the finally clause.
<br><br>Joe. <br><br><br>On 9/7/06, RAJ <<a href="http://www.nabble.com/user/SendEmail.jtp?type=post&post=6192439&i=0" target="_top">rajparikh7575@...</a>> wrote: <br>> Hi All, <br>> We have installed OpenCms version
6.0.3 on websphere 6.0 and oracle <br>> 8.i environment. My problem is, every 2 or 3 days website goes down and <br>> throws following exception. Exception Says Connection pool exhausted. After <br>> resetting the connection pool it works fine for another 2 or 3 day and start
<br>> throwing same exception. What <br>> could be the possible reason ? <br>> <br>> Thanks <br>> Rupesh <br>> <br>> Caused by: org.opencms.db.CmsDbSqlException: An SQL error <br>> occurred when executing the following query: .
<br>> at org.opencms.db.generic.CmsVfsDriver.readResource <br>> (CmsVfsDriver.java(Compiled Code)) <br>> at <br>> org.opencms.db.CmsDriverManager.readResource(CmsDriverManager.java(Compiled <br>> Code)) <br>
> at <br>> org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java(Inlined <br>> Compiled Code)) <br>> ... 26 more <br>> Caused by: org.apache.commons.dbcp.SQLNestedException: <br>> Cannot get a connection, pool exhausted
<br>> at <br>> org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java(Compiled <br>> Code)) <br>> at java.sql.DriverManager.getConnection <br>> (DriverManager.java(Compiled Code)) <br>> at <br>
> java.sql.DriverManager.getConnection(DriverManager.java(Inlined <br>> Compiled Code)) <br>> at <br>> org.opencms.db.CmsSqlManager.getConnectionByUrl(CmsSqlManager.java(Inlined <br>> Compiled Code)) <br>> at
<br>> org.opencms.db.generic.CmsSqlManager.getConnection(CmsSqlManager.java(Compiled <br>> Code)) <br>> at <br>> org.opencms.db.generic.CmsSqlManager.getConnection(CmsSqlManager.java(Compiled <br>> Code))
<br>> ... 29 more <br>> Caused by: java.util.NoSuchElementException : Timeout <br>> waiting for idle object <br>> at <br>> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java
(Compiled <br>> Code)) <br>> ... 35 more <br>> <br>> _______________________________________________ <br>> This mail is sent to you from the opencms-dev mailing list <br>> To change your list options, or to unsubscribe from the list, please visit
<br>> <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_top" rel="nofollow">http://lists.opencms.org/mailman/listinfo/opencms-dev</a> <br>> <br>> <br><br>_______________________________________________
<br>This mail is sent to you from the opencms-dev mailing list <br>To change your list options, or to unsubscribe from the list, please visit <br><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_top" rel="nofollow">
http://lists.opencms.org/mailman/listinfo/opencms-dev</a> <br> </div></div>