Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1AD210F24 for ; Fri, 27 Sep 2013 04:14:42 +0000 (UTC) Received: (qmail 53018 invoked by uid 500); 27 Sep 2013 04:14:38 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 52797 invoked by uid 500); 27 Sep 2013 04:14:37 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 52786 invoked by uid 99); 27 Sep 2013 04:14:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Sep 2013 04:14:34 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anuprab2@gmail.com designates 209.85.219.66 as permitted sender) Received: from [209.85.219.66] (HELO mail-oa0-f66.google.com) (209.85.219.66) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Sep 2013 04:14:30 +0000 Received: by mail-oa0-f66.google.com with SMTP id g12so300241oah.1 for ; Thu, 26 Sep 2013 21:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Z/U9LYYbI9hwdvOCys0LK5zn5wsZksf+ckXnZbHgs+4=; b=SAdbA3373ZIoHaEiFq/DkcTUvmTdBjJQlsWV003Ip3L+I+dtZJCtCeCZDEHEgBQ8Dm kk9njvVoJ2l7O+73Id75BgF61kModpkn/iozR2d7droJ68aswzLCFFL2hYXbixeFxo23 p65Xq2a/Kkq8pBJOWUxogkMZXwLkQMKDjUEZpU7mq3QIBLNZrFl7tl23bnMritVTxAfL xEuoGZwBUBxCFRvh/85k2DbB8PaUqykYzkZvyS/Mc1OMCk1KVr0yRdewtmLIroFxCA3w Em4UZ6OL9i8I5W6vSdnEHCL2Q/ot/HxHcYYrBATlEwU97p/1O1ctz1BxhdSlxvtK1qsd AB3g== MIME-Version: 1.0 X-Received: by 10.182.130.131 with SMTP id oe3mr3997851obb.34.1380255249617; Thu, 26 Sep 2013 21:14:09 -0700 (PDT) Received: by 10.76.125.129 with HTTP; Thu, 26 Sep 2013 21:14:09 -0700 (PDT) In-Reply-To: <1427F4AE-94FD-41FF-9FE1-348D7154E866@gopivotal.com> References: <5244AF04.30809@christopherschultz.net> <1427F4AE-94FD-41FF-9FE1-348D7154E866@gopivotal.com> Date: Fri, 27 Sep 2013 09:44:09 +0530 Message-ID: Subject: Re: Reg: Connection pool From: Anu Prab To: Tomcat Users List Content-Type: multipart/alternative; boundary=089e013cbdc4da5a9e04e755b7ea X-Virus-Checked: Checked by ClamAV on apache.org --089e013cbdc4da5a9e04e755b7ea Content-Type: text/plain; charset=ISO-8859-1 On Sep 26, 2013, at 6:02 PM, Christopher Schultz < chris@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Daniel, > > On 9/26/13 9:18 AM, Daniel Mikusa wrote: >> On Sep 26, 2013, at 2:22 AM, Anu Prab wrote: >> >>> I am using Tomcat version 7. >> >> For future reference, please include the exact version of Tomcat >> you are running. There are 40+ different versions. >> >>> Is it possible to update connection pool properties without >>> restarting the Tomcat server? >> >> Please also include specific details like which connection pool >> are you using. There are two included with Tomcat, DBCP and >> tomcat-jdbc. >> >> To give a general answer to your question, you can update some of >> the properties through JMX. It'll depend on the version of Tomcat >> and which pool you are using as to which properties you can update. >> Try connecting with jconsole or jvisualvm w/MBeans plugin and see >> if the properties you need are exposed and editable. > > While most properties are not immutable (e.g. you can change their > values via JMX), changing them usually has no effect because the > connection pool is not re-initialized when those values change. Good point. It's important to be realistic about what you can do at runtime. > Perhaps Anu can give us a use case for when this kind of thing would > be appropriate... what would you want to change during runtime in a > stable system? +1 definitely need more info here. Dan Hi, The Tomcat version I am using is 7.0.40 and the connection pool is tomcat-jdbc. Well, one case would be to increase the maxActive property. -Anu On Fri, Sep 27, 2013 at 7:48 AM, Daniel Mikusa wrote: > On Sep 26, 2013, at 6:02 PM, Christopher Schultz < > chris@christopherschultz.net> wrote: > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA256 > > > > Daniel, > > > > On 9/26/13 9:18 AM, Daniel Mikusa wrote: > >> On Sep 26, 2013, at 2:22 AM, Anu Prab wrote: > >> > >>> I am using Tomcat version 7. > >> > >> For future reference, please include the exact version of Tomcat > >> you are running. There are 40+ different versions. > >> > >>> Is it possible to update connection pool properties without > >>> restarting the Tomcat server? > >> > >> Please also include specific details like which connection pool > >> are you using. There are two included with Tomcat, DBCP and > >> tomcat-jdbc. > >> > >> To give a general answer to your question, you can update some of > >> the properties through JMX. It'll depend on the version of Tomcat > >> and which pool you are using as to which properties you can update. > >> Try connecting with jconsole or jvisualvm w/MBeans plugin and see > >> if the properties you need are exposed and editable. > > > > While most properties are not immutable (e.g. you can change their > > values via JMX), changing them usually has no effect because the > > connection pool is not re-initialized when those values change. > > Good point. It's important to be realistic about what you can do at > runtime. > > > Perhaps Anu can give us a use case for when this kind of thing would > > be appropriate... what would you want to change during runtime in a > > stable system? > > +1 definitely need more info here. > > Dan > > > > > - -chris > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.14 (Darwin) > > Comment: GPGTools - http://gpgtools.org > > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > > > iQIcBAEBCAAGBQJSRK8EAAoJEBzwKT+lPKRYkMEP/A04GloLJdT4u/Jlgh13Svw+ > > jFhmRHwxHP93bTtglyr0CQ98YW4VqW/LwiYJLP7hZLW1yKr9Fd9WJi+jiW6qni6A > > dQUo4jCVn5AChkjvUKSwMPi2AHrJ79SrGdyAivyW8LpqCK28Q50bDFc8bZU4rms4 > > UumIQ6dNashLDj2PDQhdtaCO5PD+aw269kPI6tQtpwEwe/+cW1kNCcfG7HO/8eav > > /xmGwMZNwwhrhV6mWIB9KojR2sQghOh68QHFO9VXUCe3UgY7nQmN6D3iEWRM5Bo2 > > WFKMQF3mTpsnBOM9NN6hd4SBuDK6XqUGz/7KQ4ucfl+Y6vMl4NTwGFQy+A+tDamh > > Py+j5XxTxUIj+bxjfDySKy7qqUz97RuYSVSzmlI5la9p+uPQZpz7xPSCkuaQ7xIr > > ihLKg1dGsUz7XfdIHVOlKmFxovkuifu/6GM0yw320Jmp/GUaEfiYbcz6xoxLZob0 > > RljlwowyYelnv92OHYZp9vSfYkyi+BznVd6YV0/yPdCm2E3kgNVJlkgAERST4nBB > > gYkBaciEJvsdPS67TjoR5DFNPqGbWcNKD2qL4T8J67OciP6cZjiWpE7Tmee1xb6J > > eIiolTiKBxCgq7qKx8GubDk/9gcQ9AsvwVL9mux6x1zNN3vZOawTZucxdIUL3ziQ > > oLpb46SghgIqevBDYmFd > > =/0XG > > -----END PGP SIGNATURE----- > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --089e013cbdc4da5a9e04e755b7ea--