Hi, you can activate the full debug launch squid -k debug with the service running, and check what comes in the cache.log.
squid -k parse will audit your config file. Look for WARNING in the output of this command. the cachemanager can be usefull to see the actual activity of your squid : squidclient localhost mgr:5min gives you the last 5 min stats. (see if the n° of req/s is coherent with what you expect ) Bonne chance Alex 2013/3/26 Youssef Ghorbal <[email protected]>: > Hello, > > We have a Squid 3.1.23 running on a FreeBSD 8.3 (amd64) > The proxy is used to handle web access for ~2500 workstations and in > pure proxy/filter (squidGaurd) mode with no cache (all disk caching is > disabled) > It's not a tranparent/intercepting proxy, just a plain explicit proxy > mode. > > What we see, is that the squid process is using 100% of CPU (userland > CPU usage, not kernel) all the time. Even in late night when the whole > traffic is very minimalistic. > > What I'm looking for is some advice on how to track down what is > causing this CPU misbehaviour. Maybe it's some stupid config option not > suitable for this kind of setup, maybe a bug etc. > What would be the tools/methodology that I can use to profile the > running process. > > Any help/suggestion would be really appreciated. > > Youssef Ghorbal > > squid -v > Squid Cache: Version 3.1.23 > configure options: '--with-default-user=squid' '--bindir=/usr/local/sbin' > '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' > '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/var/squid' > '--sysconfdir=/usr/local/etc/squid' '--with-logdir=/var/log/squid' > '--with-pidfile=/var/run/squid/squid.pid' '--enable-removal-policies=lru > heap' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-epoll' > '--disable-translation' '--disable-ecap' '--disable-loadable-modules' > '--enable-auth=basic digest negotiate ntlm' '--enable-basic-auth-helpers=DB > NCSA PAM MSNT SMB squid_radius_auth LDAP YP' > '--enable-digest-auth-helpers=password ldap' > '--enable-external-acl-helpers=ip_user session unix_group wbinfo_group > ldap_group' '--enable-ntlm-auth-helpers=smb_lm' '--enable-storeio=ufs diskd > aufs' '--enable-disk-io=AIO Blocking DiskDaemon DiskThreads' > '--enable-delay-pools' '--enable-icap-client' '--enable-kqueue' > '--with-large-files' '--enable-stacktraces' '--disable-optimizations' > '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' > '--build=amd64-portbld-freebsd8.3' 'build_alias=amd64-portbld-freebsd8.3' > 'CC=cc' 'CFLAGS=-pipe -I/usr/local/include -g -g -DLDAP_DEPRECATED' 'LDFLAGS= > -L/usr/local/lib' 'CPPFLAGS=' 'CXX=c++' 'CXXFLAGS=-pipe -I/usr/local/include > -g -g -DLDAP_DEPRECATED' 'CPP=cpp' > --with-squid=/wrkdirs/usr/ports/www/squid31/work/squid-3.1.23 > --enable-ltdl-convenience >
