Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25FC5FC1A for ; Mon, 29 Apr 2013 20:19:11 +0000 (UTC) Received: (qmail 9923 invoked by uid 500); 29 Apr 2013 20:19:10 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 9895 invoked by uid 500); 29 Apr 2013 20:19:10 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 9887 invoked by uid 99); 29 Apr 2013 20:19:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 20:19:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cwolf.algo@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vb0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 20:19:05 +0000 Received: by mail-vb0-f43.google.com with SMTP id q13so4503992vbe.16 for ; Mon, 29 Apr 2013 13:18:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=UTBXoFBhh1yYnbIUooVK6h1hGytRz/2tyQQ2RUbo+10=; b=RFkFy94Y7q5z6uCBb0g11RoqF6rkVYDeRyF/PmGmcpgggGVxmEcOC8rqQQPcvYMElp Lc8X7CEJcT5RSztYbImCFZhZjePVuAxRbtHgsbBbyLBMYIbGYK+x886A2fBMSch6xakz 9zt4MdLQD8LnbWnxnjyxxmYynlNGPvAmi6KG8lJ08qxITTmIDFjjohiwbWb8XtRaMMvm SEXAd+FCzBjOHkudreuAzICwiBfFXiaqkJ84jkaHxljgx/+RLdWXwR6i5CrHdaaZndeE fUosk8Ie289PiireRZRavT/XxOzdb3w+OdaFy3dMzj3n5BpUOrC/YeDhrdw38H6wcxLU B9Zg== MIME-Version: 1.0 X-Received: by 10.58.232.98 with SMTP id tn2mr33212810vec.57.1367266724976; Mon, 29 Apr 2013 13:18:44 -0700 (PDT) Received: by 10.59.13.134 with HTTP; Mon, 29 Apr 2013 13:18:44 -0700 (PDT) Date: Mon, 29 Apr 2013 16:18:44 -0400 Message-ID: Subject: Getting "ORA-12519, TNS:no appropriate service handler found"...again. I don't think it's picking up DBCP pooling From: Chris Wolf To: users@openjpa.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org A back in January, I kept getting ORA-12519, and I tried all the suggestions on the web, e.g. alter system set processes = 300 scope = spfile; alter system set sessions = 335 scope = spfile; alter system set transactions = 369 scope = spfile; All to no avail. Looking in /app//diag/tnslsnr//listener/trace/listener.log confirms hundreds of connections being opened by OpenJPA before it gets hit with ORA-12519, which I assume is a side-effect of running out of connections. I then dropped in the commons-dbcp-1.4.jar jar to enable connection pooling and the issue went away. Today, I am seeing it again, and although the stack trace seems to suggest that connection pooling is not happening... could someone confirm? Also I thought it was sufficient to merely have commons-dbcp-1.4.jar on the classpath to enable pooling - is there a config adjustment required also? (That I may have forgotten about since January)? at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:218) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:29) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:528) at org.apache.openjpa.jdbc.schema.SimpleDriverDataSource.getSimpleConnection(SimpleDriverDataSource.java:84) at org.apache.openjpa.jdbc.schema.AutoDriverDataSource.getConnection(AutoDriverDataSource.java:39) at org.apache.openjpa.jdbc.schema.SimpleDriverDataSource.getConnection(SimpleDriverDataSource.java:76) at org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:118) at org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:93) at org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:118) at org.apache.openjpa.jdbc.schema.DataSourceFactory$DefaultsDataSource.getConnection(DataSourceFactory.java:304) at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.connectInternal(JDBCStoreManager.java:982) at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.connect(JDBCStoreManager.java:967) Thanks, Chris