Re: Connection attempt hangs when server is unresponsive

Поиск
Список
Период
Сортировка
От Usama Dar
Тема Re: Connection attempt hangs when server is unresponsive
Дата
Msg-id ff0e67090712060423p2769cd7egd9dad5d49604b0d3@mail.gmail.com
обсуждение исходный текст
Ответ на Connection attempt hangs when server is unresponsive  ("Woody Woodring" <george.woodring@iglass.net>)
Список pgsql-jdbc

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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: BatchUpdate exception
Следующее
От: "Usama Dar"
Дата:
Сообщение: Re: java.io.EOFException