[squid-users] query about --with-filedescriptors and ulimit

From: Amm <ammdispose-squid_at_yahoo.com>
Date: Thu, 14 Feb 2013 17:12:48 +0800 (SGT)

Hello, I have a query about how --with-filedescriptors and ulimit. Every 2-3 days I keep getting WARNING that system is running out of descriptors. I compiled squid using --with-filedescriptors=16384. So do I still need to set ulimit before starting squid? Or does squid automatically set ulimit? (as it starts as root) I am using Fedora 16 with systemd squid.service (standard fedora file, no change) Cache.log says: 2013/02/14 10:28:52 kid1| With 16384 file descriptors available which is as expected. squidclient gives this: [root_at_localhost ]# squidclient -h 127.0.0.1 mgr:info |grep -i desc File descriptor usage for squid:         Maximum number of file descriptors:   16384         Largest file desc currently in use:    888         Number of file desc currently in use:  774         Available number of file descriptors: 15610         Reserved number of file descriptors:   100 ulimit -H -n gives 4096 ulimit -n gives 1024 These are standard Fedora settings, I have not made any changes. So back to my question: If I am compiling squid with --with-filedescriptors=16384 do I need to set ulimit before starting squid? Or does squid automatically set ulimit? Thanks Amm.
Received on Thu Feb 14 2013 - 09:12:59 MST

This archive was generated by hypermail 2.2.0 : Thu Feb 14 2013 - 12:00:04 MST