Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 92395 invoked from network); 3 Jun 2007 04:58:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2007 04:58:41 -0000 Received: (qmail 20445 invoked by uid 500); 3 Jun 2007 04:58:44 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 20408 invoked by uid 500); 3 Jun 2007 04:58:44 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 20393 invoked by uid 99); 3 Jun 2007 04:58:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2007 21:58:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of david.vancouvering@gmail.com designates 209.85.146.179 as permitted sender) Received: from [209.85.146.179] (HELO wa-out-1112.google.com) (209.85.146.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2007 21:58:38 -0700 Received: by wa-out-1112.google.com with SMTP id k17so1317857waf for ; Sat, 02 Jun 2007 21:58:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=QGWi4bO5THIOxOPBpHYMLqE5kLq6YET5sjPnulH/kZZFweDGyUaxHQ6ZO8C3xalLK7T4n5Blim9sdszPAtYeE/EgHA0AZlC5VLjdXuvCrU2gVKeFSHaftf3GoGuGr3JYdET78YT7pOAPwjWJZX36w9hosc7+2ES82GQWY35zGMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=rWNXe0AEcDr6s7p5szUmMnqdvLNbektAK4kSNGNg4rxUJIOLuNpOFvmux1VZjuQuhvnn6IuBlqMZ9OSv1VSRVzgF7QRWrQiAdnwnzLTaNkYwMYV4qYKPUZRpoQgXGIMxmZdK7aX6NJbMusd1xK4J/4A4wj9OSHA1O5Q63hbhTpY= Received: by 10.115.49.16 with SMTP id b16mr3442285wak.1180846698090; Sat, 02 Jun 2007 21:58:18 -0700 (PDT) Received: by 10.114.123.4 with HTTP; Sat, 2 Jun 2007 21:58:18 -0700 (PDT) Message-ID: <56a83cd00706022158q4c3036dfq8f996067ffb32cac@mail.gmail.com> Date: Sat, 2 Jun 2007 21:58:18 -0700 From: "David Van Couvering" Sender: david.vancouvering@gmail.com To: "Derby Discussion" Subject: Re: Cannot get a connection, pool exhausted In-Reply-To: <10922522.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <10922522.post@talk.nabble.com> X-Google-Sender-Auth: 2ef01e1ceab16dca X-Virus-Checked: Checked by ClamAV on apache.org This might be a better question for the forum of the app server you're running on. I can't tell which app server it is, it looks like Glassfish? It sounds like the connections are not being released after you use them. I don't know what your application code looks like, but could you be possibly holding on to a reference to the connection object somewhere? Are you calling close() on the connection object at the end of each transaction? David On 6/1/07, hk wrote: > > Even though I am the only user to connect a database, I get the error message > quite soon. > How can I avoid the error message? I have tried to increase maxActive to > double, however it just can stay double number of database connection. In > fact, I was expecting that, because I was the only user, the database > conection maxActive 8 should be enough. > > I use JNDI connection pool. My resource in the context.xml is set up like > below > > > name="jdbc/NetBlockFlixster" > url="jdbc:derby://localhost:1527/Net" > auth="Container" > driverClassName="org.apache.derby.jdbc.ClientDriver" > type="javax.sql.DataSource" > maxActive="8" maxIdle="4" > maxWait="1000" > username="app" password="app" /> > > > > > -- > View this message in context: http://www.nabble.com/Cannot-get-a-connection%2C-pool-exhausted-tf3855182.html#a10922522 > Sent from the Apache Derby Users mailing list archive at Nabble.com. > >