Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 72644 invoked from network); 30 Jul 2006 20:20:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jul 2006 20:20:49 -0000 Received: (qmail 19813 invoked by uid 500); 30 Jul 2006 20:20:47 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 19743 invoked by uid 500); 30 Jul 2006 20:20:46 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 19732 invoked by uid 99); 30 Jul 2006 20:20:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jul 2006 13:20:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jul 2006 13:20:44 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B300641000C for ; Sun, 30 Jul 2006 20:18:15 +0000 (GMT) Message-ID: <16455973.1154290695730.JavaMail.jira@brutus> Date: Sun, 30 Jul 2006 13:18:15 -0700 (PDT) From: "Phil Steitz (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Reopened: (DBCP-102) [dbcp] setReadOnly & setAutoCommit called too many times MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DBCP-102?page=all ] Phil Steitz reopened DBCP-102: ------------------------------ Per last comment, passivateObject should also be fixed. > [dbcp] setReadOnly & setAutoCommit called too many times > -------------------------------------------------------- > > Key: DBCP-102 > URL: http://issues.apache.org/jira/browse/DBCP-102 > Project: Commons Dbcp > Issue Type: Bug > Affects Versions: 1.2 Final > Environment: Operating System: other > Platform: Sun > Reporter: AC > Fix For: 1.2.2 > > > In order to gain some processor time for my application that uses Hibernate, I > looked with optimizeIt where it spends time. It seems that for a request on the > database (Oracle 9) around 25% (!!?) is spent on getting the connection from > the DBCP pool, and this not only the first time!. The methods that provoke this > loss of time are connection.setReadOnly and connection.setAutoCommit called > inside the method PoolableConnectionFactory.activateObject. Looking to the > stack, these calls translate to communication with the Oracle server. > The obvious thing to do is to check if read only and autocommit flags are > already set to the expected values. (Of course, Oracle could 've done this too, > but I hope you'll have a faster response :) ) > Thank you very much for you help. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org