Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F39182E34AA for ; Thu, 6 Dec 2007 08:23:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18171-03 for ; Thu, 6 Dec 2007 08:23:49 -0400 (AST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by postgresql.org (Postfix) with ESMTP id E0D412E3491 for ; Thu, 6 Dec 2007 08:23:48 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id f5so71764nfh for ; Thu, 06 Dec 2007 04:23:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=b8WlW/c4ERD9AhHuVOlKAd0VjInLMHZhCDRL3o1rIzM=; b=NFAZkq06q3lVtuFZapmeMWXFS86b0gDCuMESs1LztGzBRCgleKAgYB9fXgYgIbSyiO0OlE627Tt2+wGDIiPpu9OmVm+1mzZadwgiyvD99+tB/Mx067g7PPlKjWBpGhxHKe5rpNixGpTIZ26UCcLppqbwRPan0eXo7VkQyeSKL9s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=EoBx9cDVqU+T90BiueuYWaJw5epb5qab+HMR+s4hG3qHW50EiYGSekLVR7hIB7G4Vbn3XotAwKWhbsBYOEwkQAfDIrgURecf+eYc/apT7lI60Dvj0FDkKIQIbeTkimYDt8F0SRg34vXguRhM1jFggYk7tJ+AdUCUF1JGw4gfu50= Received: by 10.78.132.2 with SMTP id f2mr2202257hud.1196943815973; Thu, 06 Dec 2007 04:23:35 -0800 (PST) Received: by 10.78.151.9 with HTTP; Thu, 6 Dec 2007 04:23:35 -0800 (PST) Message-ID: Date: Thu, 6 Dec 2007 17:23:35 +0500 From: "Usama Dar" To: "Woody Woodring" Subject: Re: Connection attempt hangs when server is unresponsive Cc: pgsql-jdbc@postgresql.org In-Reply-To: <086f01c83775$42d5d370$80b1a8c0@istructure.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5458_23381829.1196943815685" References: <086f01c83775$42d5d370$80b1a8c0@istructure.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/46 X-Sequence-Number: 17901 ------=_Part_5458_23381829.1196943815685 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > My question is why this thread did not error out when it could not talk to > the server? Could the server have been up when the connection started and > went away in the middle causing errors? Could there be something we have > overlooked in our conf that would time it out? When the db server came > back, our thread count dropped from 200 down to 35 which is normal. > > Look into 1- Setting the jdbc driver's login timeout 2- make sure that the connection attempts are not trying to do long name resolution lookups 3- If you are using DBCP make sure tomcat is configured to remove abandoned connections (removeAbandoned=true) and related parmeters are set to reasonable value. -- Usama Munir Dar http://linkedin.com/in/usamadar Consultant Architect Cell:+92 321 5020666 Skype: usamadar ------=_Part_5458_23381829.1196943815685 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
My question is why this thread did not error out when it could not talk to
the server?  Could the server have been up when the connection started and
went away in the middle causing errors?  Could there be something we have
overlooked in our conf that would time it out?  When the db server came
back, our thread count dropped from 200 down to 35 which is normal.


Look into

1- Setting the jdbc driver's login timeout
2- make sure that the connection attempts are not trying to do long name resolution lookups
3- If you are using DBCP make sure tomcat is configured to remove abandoned connections (removeAbandoned=true) and related parmeters are set to reasonable value.

--
Usama Munir Dar http://linkedin.com/in/usamadar
Consultant Architect
Cell:+92 321 5020666
Skype: usamadar
------=_Part_5458_23381829.1196943815685--