From owner-freebsd-questions@FreeBSD.ORG Fri Jan 21 06:47:42 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6167B16A4CE for ; Fri, 21 Jan 2005 06:47:42 +0000 (GMT) Received: from out010.verizon.net (out010pub.verizon.net [206.46.170.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id C891C43D39 for ; Fri, 21 Jan 2005 06:47:41 +0000 (GMT) (envelope-from reso3w83@verizon.net) Received: from ringworm.mechee.com ([4.26.84.7]) by out010.verizon.net ESMTP <20050121064741.RJUV24714.out010.verizon.net@ringworm.mechee.com>; Fri, 21 Jan 2005 00:47:41 -0600 Received: by ringworm.mechee.com (Postfix, from userid 1001) id 82E2F2CE7CA; Thu, 20 Jan 2005 22:44:05 -0800 (PST) From: "Michael C. Shultz" Date: Thu, 20 Jan 2005 22:44:04 -0800 User-Agent: KMail/1.7.2 To: "Joachim Dagerot" , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501202244.04603.reso3w83@verizon.net> X-Authentication-Info: Submitted using SMTP AUTH at out010.verizon.net from [4.26.84.7] at Fri, 21 Jan 2005 00:47:40 -0600 Subject: Fwd: Re: "Too many open files" (Critical, have only one session left) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2005 06:47:42 -0000 ---------- Forwarded Message ---------- Subject: Re: "Too many open files" (Critical, have only one session left) Date: Thursday 20 January 2005 06:52 pm From: Enigma To: "Michael C. Shultz" You can use sysctl ajust kernel values "kern.maxfiles" type this in your prompt #sysctl kern.maxfiles kern.maxfiles: 10000 (this is your current maxfiles values) then you can add thie values #sysctl kern.maxfiles=15000 kern.maxfiles: 10000 -> 15000 and if you want keep this values edit /etc/sysctl.conf add this line kern.maxfiles=15000. next reboot will keep this values. Sorry,My not good english. Max On Thu, 20 Jan 2005 15:59:22 -0800, Michael C. Shultz wrote: > On Thursday 20 January 2005 03:38 pm, Joachim Dagerot wrote: > > >> I have got it before and took appropriate steps using the ideas > > >> and tips from you guys. Now I have it again: > > >> > > >> Current situation on my head-less system is that I do have a > > >> single SSH session up. Unfortunately it's not authenticated as > > >> ROOT but as an ordinary user. > > >> > > >> When I try a "ls" I get : > > >> > > >> $ ls > > >> ls: .: Too many open files in system > > >> > > >> Trying a su gives: > > >> $ su > > >> /usr/libexec/ld-elf.so.1: Cannot open "/usr/lib/libutil.so.3" > > >> > > >> > > >> I have a fairly huge RAID-5 system thatdislikes a power shutdown > > >> so I rather want to reboot the machine manually. I certainly > > >> need som help here and also more help on how to avoid this > > >> problem in the future. > > > > > >I don't remember a previous message from you, but here is a link > > > you may find helpful: > > > > > >http://www.onlamp.com/pub/a/bsd/2002/09/26/Big_Scary_Daemons.html? > > >pa ge=1 > > > > Good tip, unforunately I can't even run fstab: > > $ su > > /usr/libexec/ld-elf.so.1: Cannot open "/usr/lib/libutil.so.3" > > You mean you can't run fstat right? > > > I seam to be stucked. Is there a way to do a su for a specific > > program. I can't run 'su' but when I try shutdwon: > > > > $ shutdown -r now > > -bash: /sbin/shutdown: Permission denied > > > > Looks like it's possible to run shutdown if I only hade the right > > permission... > > Can you run ps -aux and maybe kill some processes? I know it's > unlikely but its the only thing I can think of, hopefully someone who > knows more will offer better suggestions. > > -Mike > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -------------------------------------------------------