Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 81036 invoked from network); 11 Dec 2003 18:16:35 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Dec 2003 18:16:35 -0000 Received: (qmail 43305 invoked by uid 500); 11 Dec 2003 18:16:24 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 43291 invoked by uid 500); 11 Dec 2003 18:16:24 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 43278 invoked from network); 11 Dec 2003 18:16:24 -0000 Received: from unknown (HELO mx201.mysite4now.com) (216.250.116.238) by daedalus.apache.org with SMTP; 11 Dec 2003 18:16:24 -0000 Received: (qmail 29770 invoked by uid 104); 11 Dec 2003 18:15:27 -0000 Received: from rs@reazon.com by localhost.localdomain by uid 110 with qmail-scanner-1.14 (spamassassin: 2.43-cvs. Clear:. Processed in 0.129792 secs); 11 Dec 2003 18:15:27 -0000 Received: from adsl-67-112-246-202.dsl.lsan03.pacbell.net (HELO RSC640) (67.112.246.202) by mx201.mysite4now.com with SMTP; 11 Dec 2003 18:15:27 -0000 From: "Ramesh Sabeti" To: "'Apache Torque Users List'" Subject: Torque JDBC2 Pool hangs w/ Oracle Date: Thu, 11 Dec 2003 10:16:31 -0800 Message-ID: <003001c3c012$e739b910$800101df@rsccd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm doing a "torture" test by repeatedly opening torque connections to a database, performing a bunch of SELECTs and closing connections. It works fine if only one browser calls the torture test page, but if it's done from two separate browsers (one IE and NS), one of them completes the process and the other one hangs in the middle without any exceptions thrown. Here's my code... any suggestions? private void doTest() { try { for (int i = 0; i < 10; i++) { java.sql.Connection conn = Torque.getConnection(); System.out.print(">"); java.sql.Statement stmt = conn.createStatement(); for (int j = 0; j < 100; j++) { stmt.execute("SELECT itm_id from item where itm_id=" + new Random().nextInt()); System.out.print("."); } Torque.closeConnection(conn); System.out.println(); } System.out.println("Torture test ended successfully."); } catch (Exception e) { System.out.println("Exception in TortureTestForm"); } } Thanks, Ramesh. P.S. The torque connection setting is: torque.dsfactory.default.factory=org.apache.torque.dsfactory.Jdbc2PoolDa taSourceFactory torque.dsfactory.default.pool.defaultMaxActive=50 torque.dsfactory.default.pool.testOnBorrow=true torque.dsfactory.testDB.pool.minEvictableIdleTimeMillis=300000 torque.dsfactory.testDB.pool.timeBetweenEvictionRunsMillis=600000 torque.dsfactory.testDB.pool.defaultMaxIdle=10 torque.dsfactory.default.pool.validationQuery=SELECT sysdate from dual --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org