Date: Mon, 25 Sep 2000 14:00:55 +0200 From: cam <cam@bsdfr.org> To: Mike Doyle <relyod@co-operation-ireland.ie> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Question about sysctl Message-ID: <39CF3E77.CB1F246B@bsdfr.org> References: <3.0.5.32.20000925120219.0083e1c0@199.107.2.1>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Doyle wrote: > I need a little pointer on the use of sysctl. > > Background to the problem: > This morning I noticed a warning on my server console > "... squid[pid]: WARNING! Your cache is running out of file descriptors" > > Now this has never happened before. > Reading the old questions/answers on the Squid website, it refered to a > utility > called "ulimit". But "man ulimit" on FreeBSD returns nothing. > > However I remembered the sysctl command, and one of the options sysctl > can set/change is "kern.maxfiles" (currently 1576) > > Is this what I need to increase? If so, will I need to re-start the server > afterwards? Or simply re-start Squid? > > I have never worried about this before now because the out-of-the-box > configurations have "just worked" for the last three years... > hi, I think you just have to type : sysctl -w kern.maxfiles=<what you want> to make it work fine. You also need to put this line into your /etc/rc.sysctl to make change after each reboot. You don't have to restart anything, even squid. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39CF3E77.CB1F246B>