X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 418329DC84E for ; Wed, 8 Mar 2006 12:46:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35380-03 for ; Wed, 8 Mar 2006 12:46:41 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web54709.mail.yahoo.com (web54709.mail.yahoo.com [206.190.49.199]) by postgresql.org (Postfix) with SMTP id C38E99DC815 for ; Wed, 8 Mar 2006 12:46:40 -0400 (AST) Received: (qmail 38786 invoked by uid 60001); 8 Mar 2006 16:46:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=TNN0vQE4+xVIP3TM3N+Oj0dqqKHR4nRJghIMcgu5mWKWXAHoRCSnH2XWaybtA3RbF2Nyl9jfVfbF+oM9/Male69wJ3h8ZsTQHtSsBgcsWe12DRHvBAkLzCqz432kzNjaS5CcYNTMUSiFuwiJRIr7vSK0MyFDMZHbl9n1iE4eLp0= ; Message-ID: <20060308164640.38784.qmail@web54709.mail.yahoo.com> Received: from [80.74.175.195] by web54709.mail.yahoo.com via HTTP; Wed, 08 Mar 2006 08:46:40 PST Date: Wed, 8 Mar 2006 08:46:40 -0800 (PST) From: Nikola Milutinovic Subject: Re: Connection String To: pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.358 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_WHOIS=0.879] X-Spam-Score: 1.358 X-Spam-Level: * X-Archive-Number: 200603/43 X-Sequence-Number: 14824 --- Rajeev Menon wrote: > Hi, > > Thanks for the reply. > > I have been monitoring the connections and at any point there does not seem > to be more than 15 connections open...i have seen the speed drop even when > 2-3 connections are open. > > > On 3/8/06, Nikola Milutinovic wrote: > > > > --- Rajeev Menon wrote: > > > > > of the time the After Connection also come but occassionaly it just > > shows a > > > B4 connection line and waits and in the meantime as more and more users > > > login more and more B4 connections come up and suddenly the connecion is > > re > > > established. Could somone help because this is slowin down the system > > > > Could it be that you are not closing connections? > > > > There is always a limit as to how many connections can be opened on the > > server, > > configurable, of course, but finite. Connections that are left hanging > > could > > have a close-if-idle behaviour, I'm not sure. Usually people complain that > > they > > cannot access DB after a while, if they are leaking connections. Or > > perhaps > > you're just droping them and JVM's garbage collector is kicking in from > > time to > > time, closing GCed connections. > > > > I'd sugest setting up a connection pool, Tomcat's DBCP is very > > configurable, > > even in the sense of lost connections, see it's "idle*" parameters. > > > > How many connections do you have to the server, when the slowdown occurs? This is puzzling. With such low connection count, I can see no good reason for this delay. Is there anything in the server logs? Nix. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com