commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DBCP-397) Exception ORA-01000 [Number of open cursors exceeds the limit] is faced when prepared statement pooling is enabled in DBCP 1.3
Date Mon, 25 Mar 2013 21:23:18 GMT

    [ https://issues.apache.org/jira/browse/DBCP-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13613153#comment-13613153
] 

Phil Steitz commented on DBCP-397:
----------------------------------

Does your application do batch updates?  If so, this could be related to https://issues.apache.org/jira/browse/DBCP-372.

Do you have abandoned connection removal configured?  Can you provide the full DBCP config?

One final question: do you have multiple threads concurrently accessing the same logical connection
(check out once from pool and share across threads)?
                
> Exception ORA-01000 [Number of open cursors exceeds the limit] is faced when prepared
statement pooling is enabled in DBCP 1.3
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DBCP-397
>                 URL: https://issues.apache.org/jira/browse/DBCP-397
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.3, 1.4
>         Environment: jdk 1.6_u25
> dbcp 1.3/1.4
> SunOS
> Spring 2.0.6
> Oracle 10.0.2
>            Reporter: peeyush joshi
>
> Previously our application was using following setting with DBCP 1.2.1
> <property name="poolPreparedStatements">
> <value>true</value>
> <property name="maxOpenPreparedStatements">
> <value>40</value> 
> And in the oracle DB around 30 open cursors were found during high load. 
> But when we upgrade DBCP version to 1.3 even during normal load conditions the number
of open cursors keeps on increasing and reaches up to the maximum allowed limit (i.e. 1000
cursors per connection). It results an exception "nested exception is java.sql.SQLException:
ORA-01000: maximum open cursors exceeded". After this exception no DB query is processed.
 
> Same problematic behavior is noticed with DBCP 1.4.
> When poolPreparedStatements is set to false the number of maximum open cursors never
goes beyond 6 (in all DBCP versions 1.2.1/1.3/1.4)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message