Re: Hmmm ... "Out of file descriptors"

From: Oskar Pearson <oskar@dont-contact.us>
Date: Thu, 7 Aug 1997 11:22:10 +0200

Hi

> Try using the freely available lsof utility - do a search from Yahoo.
> The lsof -i command shows socket/port information. It gives some
> insight into what or who is using file descriptors or TCP/IP ports on
> your system.
Good idea!

origin site is:
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/
We mirror it here:
ftp://ftp.is.co.za/utilities/sysadmin/lsof/

Note that you will probably have to re-compile it so that it knows that
linux handles 3000 filehandles, and even then you might have problems...
this is due to a bug in the patch that doesn't create /proc/<pid>/fd/number
entries properly (I have to patch that soon... :(

Look:
lr-x------ 1 squid squid 64 Aug 7 11:21 255 -> [0900]:1775662
?--------- 1 squid squid 0 Aug 7 11:21 256
?--------- 1 squid squid 0 Aug 7 11:21 257
?--------- 1 squid squid 0 Aug 7 11:21 258
?--------- 1 squid squid 0 Aug 7 11:21 259
lrwx------ 1 squid squid 64 Aug 7 11:21 26 -> [0900]:100686

Oskar
Received on Thu Aug 07 1997 - 02:23:26 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:36:02 MST