tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <Peter.Crowt...@melandra.com>
Subject RE: java.net.SocketException: Too many open files
Date Wed, 03 Jun 2009 15:14:51 GMT
> From: John.C.Cartwright@noaa.gov [mailto:John.C.Cartwright@noaa.gov]
> Can someone please help to to understand what might cause such an
> exception?

File descriptor exhaustion - the process has run out of fds.  Any i/o could use a file descriptor,
whether that's socket to httpd, socket to database or access to a file.  Naively, I'd expect
lsof to show them - what makes you think it isn't?

If you're lucky, you merely need to find the piece of code that's leaking resources and fix
it - which I accept isn't always the easiest of jobs.  If you're *un*lucky, it's load related
and you've just plain run out.  I'll leave the UNIX specialists to suggest ways of increasing
the number of fds per process, but there have been some recent threads on here.

                - Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message