Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 98775 invoked from network); 23 Jul 2008 11:48:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2008 11:48:58 -0000 Received: (qmail 80778 invoked by uid 500); 23 Jul 2008 11:48:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 80240 invoked by uid 500); 23 Jul 2008 11:48:47 -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 80228 invoked by uid 99); 23 Jul 2008 11:48:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 04:48:47 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.137.39.234] (HELO mail.nhs.net) (212.137.39.234) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 11:47:47 +0000 Received: from [192.168.0.161] (helo=md04.prod.swi.contact.secure-ops.net) by mail.nhs.net with esmtp (Exim 4.52) id 1KLcpH-000291-1t for users@tomcat.apache.org; Wed, 23 Jul 2008 12:48:11 +0100 Received: from mta03.prod.swi.contact.secure-ops.net (EHLO mail.nhs.net) ([192.168.3.131]) by md04.swi.contact.secure-ops.net (MOS 3.8.3-GA FastPath queued) with ESMTP id DDW17104; Wed, 23 Jul 2008 12:48:11 +0100 (BST) Received: from [194.101.216.2] (helo=035191XP) by mail.nhs.net with esmtpa (Exim 4.52) id 1KLcpH-000264-7L for users@tomcat.apache.org; Wed, 23 Jul 2008 12:48:11 +0100 Reply-To: From: To: "'Tomcat Users List'" References: <001e01c8ecb3$1b355400$bd15a8c0@npfit.nhs.uk> Subject: RE: Losing connection to db with many users Date: Wed, 23 Jul 2008 12:48:41 +0100 Message-ID: <002901c8ecba$0d9af370$bd15a8c0@npfit.nhs.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Mailer: Microsoft Office Outlook 11 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: Acjst8p2aP2fjUBkSKSGP2iES/DrbQAAgaCQ In-Reply-To: X-Junkmail-IP-Whitelist: YES (by domain ip whitelist at md04.swi.contact.secure-ops.net) X-Mirapoint-RAPID-Raw: score=unknown(0), refid=str=0001.0A0B0203.48871A7B.0121,ss=1,fgs=0, ip=194.101.216.2, so=2006-12-20 11:47:04, dmn=5.4.3/2008-02-01 X-Mirapoint-Loop-Id: 1e52bdde4653d714a9e04390f251d358 Content-Transfer-Encoding: 7bit X-Tagged-Body: TEXT section X-NHS-Already-Tagged: yes X-Virus-Checked: Checked by ClamAV on apache.org I do not know about c3p0, I just know that with the connection pools we use, you must return a connection to the pool once you are finished with it because our pools have a limit on the number of connections that can be created in the pool. This stops the database getting too many requests. Rob -----Original Message----- From: ianaz90@gmail.com [mailto:ianaz90@gmail.com] On Behalf Of Silvio Rainoldi Sent: 23 July 2008 12:05 To: Tomcat Users List; robert.purvis@nhs.net Subject: Re: Losing connection to db with many users Ehm.... no... :S how can I make that? Thanks 2008/7/23 : > Are the connections being returned to the pool after use? If they are > not then your application could quickly run out of connections. > > > Rob > > -----Original Message----- > From: ianaz90@gmail.com [mailto:ianaz90@gmail.com] On Behalf Of Silvio > Rainoldi > Sent: 23 July 2008 11:07 > To: users@tomcat.apache.org > Subject: Losing connection to db with many users > > Hi all, > I'm using tomcat 6 + mysql + c3p0 connection pools + hibernate. > If i test my web application with Apache JMeter simulating 100 users > (threads?!) in a page, after 5-30 seconds i will lose the connection to db. > If I redeploy the application it work again... In the tomcat manager I > see 15'000/18'000 sessions :S Please help me and sorry for my bad > english > > > ********************************************************************** > * This message may contain confidential and privileged > information. > If you are not the intended recipient you should not disclose, > copy or distribute information in this e-mail or take any action in > reliance on its contents. To do so is strictly prohibited and may be unlawful. > Please inform the sender that this message has gone astray > before deleting it. Thank you. > > 2008 marks the 60th anniversary of the NHS. It's an opportunity to > pay tribute to the NHS staff and volunteers who help shape the > service, and celebrate their achievements. > > If you work for the NHS and would like an NHSmail email account, > go > to: www.connectingforhealth.nhs.uk/nhsmail > ********************************************************************** > * > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, > e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > -- Silvio Rainoldi Via Rinaldo Simen 6 6648 Minusio, Switzerland tel: +41 (0)76 566 03 90 mail: ianaz@zattix.com *********************************************************************** This message may contain confidential and privileged information. If you are not the intended recipient you should not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents. To do so is strictly prohibited and may be unlawful. Please inform the sender that this message has gone astray before deleting it. Thank you. 2008 marks the 60th anniversary of the NHS. It's an opportunity to pay tribute to the NHS staff and volunteers who help shape the service, and celebrate their achievements. If you work for the NHS and would like an NHSmail email account, go to: www.connectingforhealth.nhs.uk/nhsmail *********************************************************************** --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org