pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Usama Dar <munir.usama@gmail.com>
To: Woody Woodring <george.woodring@iglass.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Connection attempt hangs when server is unresponsive
Date: Thu, 6 Dec 2007 17:23:35 +0500
Message-ID: <ff0e67090712060423p2769cd7egd9dad5d49604b0d3@mail.gmail.com> (raw)
In-Reply-To: <086f01c83775$42d5d370$80b1a8c0@istructure.com>
References: <086f01c83775$42d5d370$80b1a8c0@istructure.com>

> 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

view thread (3+ messages)

Message-ID: <ff0e67090712060423p2769cd7egd9dad5d49604b0d3@mail.gmail.com>
Permalink:  ../ff0e67090712060423p2769cd7egd9dad5d49604b0d3@mail.gmail.com/
Also on:    postgresql.org/message-id/ff0e67090712060423p2769cd7egd9dad5d49604b0d3@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: munir.usama@gmail.com, george.woodring@iglass.net
  Subject: Re: Connection attempt hangs when server is unresponsive
  In-Reply-To: <ff0e67090712060423p2769cd7egd9dad5d49604b0d3@mail.gmail.com>
  References: <086f01c83775$42d5d370$80b1a8c0@istructure.com> <ff0e67090712060423p2769cd7egd9dad5d49604b0d3@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox