My
servlet accesses DB via a URL invoke.
This has been working fine for long time
However, today, when the DB went down, I found that the IOException was sometimes not being thrown. The openConnection never comes back and the socket handle appears stuck. As this happens more and more, it reaches the max filehandle and stops processing requests.
Question: why am I sometimes not getting an IOException?
What can I do so that my filehandles don't run out?
java 1.4.2_05
tomcat 4.1