Date: Wed, 21 Feb 2001 01:20:40 -0500 From: Mike Tancsa <mike@sentex.net> To: "Peter Avalos" <pavalos@theshell.com>, <stable@FreeBSD.ORG> Subject: RE: file: table is full Message-ID: <4.2.2.20010221011641.0165ec90@marble.sentex.net> In-Reply-To: <AAEMIFFLKPKLAOJHJANHGEMLDPAA.pavalos@theshell.com> References: <4.2.2.20010221004910.01fbce30@marble.sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
At 12:22 AM 2/21/2001 -0600, Peter Avalos wrote: >I'm not that familiar with lsof, but I definitely got a different result: > >#> lsof | wc -l > 18493 >#> sysctl kern.openfiles >kern.openfiles: 15958 > >Is there an easy way to sort the info from lsof so I can better determine >where these fd's are being used? I don't feel like parsing through 18493 >lines by hand. Check the man pages. | sort can also be handy... Unless you really have thousands of processes running, a pattern should be somewhat obvious. Send the output to a file and do a simple sort based on the command or PID. If you see one program with the vast lion's share start to look at it. even something like lsof | awk '{print $1 "\t" $2}' | sort | uniq -c | sort -n ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Network Administration, mike@sentex.net Sentex Communications www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.2.2.20010221011641.0165ec90>