[Server-devel] Need Squid help
Adrian Chadd
adrian at squid-cache.org
Sat Feb 9 22:58:43 EST 2008
A few things;
"With 1024 file descriptors available" isn't a lot; that should
be higher (8192 at least).
No idea for the squid.conf - I have no idea about that bundled squid
package. :) try "squid -v" to see where its default etc path or prefix
is, then read the init script shipped with the squid rpm (/etc/init.d/squid ?)
to see if it manually sets the config file path.
Finally, find out what port 3128 is doing? Someone may have already configured
apache as a proxy.
adrian
On Sat, Feb 09, 2008, Tony Pearson wrote:
> Adrian,
> My squid fails at boot time.
>
> ===>First, I found three different squid.conf files:
>
> [root at schoolserver conf]# find /etc -name squid.conf -print
> /etc/httpd/conf.d/squid.conf
> /etc/squid.conf
> /etc/squid/squid.conf
>
> The first two are regular files, the last one is a symbolic link:
>
> [root at schoolserver conf.d]# ls -l /etc/squid/squid.conf
> lrwxrwxrwx 1 root root 34 2008-01-17 23:26 /etc/squid/squid.conf ->
> //fsroot.olpc/etc/squid/squid.conf
>
> I am not sure which one is being used.
>
> ==>Second, here is /var/log/squid/cache.log
>
> 2008/02/05 11:24:33| Starting Squid Cache version 2.6.STABLE16 for
> i386-redhat-l
> inux-gnu...
> 2008/02/05 11:24:33| Process ID 3425
> 2008/02/05 11:24:33| With 1024 file descriptors available
> 2008/02/05 11:24:33| Using epoll for the IO loop
> 2008/02/05 11:24:33| DNS Socket created at 0.0.0.0, port 32768, FD 5
> 2008/02/05 11:24:33| Adding nameserver 127.0.0.1 from squid.conf
> 2008/02/05 11:24:33| User-Agent logging is disabled.
> 2008/02/05 11:24:33| Referer logging is disabled.
> 2008/02/05 11:24:33| Unlinkd pipe opened on FD 10
> 2008/02/05 11:24:33| Swap maxSize 20480000 KB, estimated 1575384 objects
> 2008/02/05 11:24:33| Target number of buckets: 78769
> 2008/02/05 11:24:33| Using 131072 Store buckets
> 2008/02/05 11:24:33| Max Mem size: 32768 KB
> 2008/02/05 11:24:33| Max Swap size: 20480000 KB
> 2008/02/05 11:24:33| Local cache digest enabled; rebuild/rewrite every
> 3600/3600
> sec
> 2008/02/05 11:24:33| Rebuilding storage in /library/cache (DIRTY)
> 2008/02/05 11:24:33| Using Least Load store dir selection
> 2008/02/05 11:24:33| Current Directory is /
> 2008/02/05 11:24:33| Loaded Icons.
> 2008/02/05 11:24:34| commBind: Cannot bind socket FD 13 to *:3128: (98)
> Address
> already in use
> FATAL: Cannot open HTTP Port
> Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
> CPU Usage: 0.071 seconds = 0.042 user + 0.029 sys
> Maximum Resident Size: 0 KB
> Page faults with physical i/o: 1
> Memory usage for squid via mallinfo():
> total space in arena: 2508 KB
> Ordinary blocks: 2379 KB 2 blks
> Small blocks: 0 KB 1 blks
> Holding blocks: 1724 KB 3 blks
> Free Small blocks: 0 KB
> Free Ordinary blocks: 128 KB
> Total in use: 4103 KB 97%
> Total free: 128 KB 3%
>
> When I checked, I see that "port 3128" is being listened to in the
> "/etc/httpd/conf/httpd.conf" file for Apache.
> Should I remove that from Apache, so that squid can have it, or should I
> try to get squid to use a different port?
>
> Thanks
>
>
>
>
>
>
> Tony Pearson
> Senior Storage Consultant, IBM System Storage?
> Telephone: +1 520-799-4309 | tie 321-4309 | Cell: +1 520 990-8669
> email: tpearson at us.ibm.com | GSA: http://tucgsa.ibm.com/~tpearson
> Blog: http://www.ibm.com/developerworks/blogs/page/InsideSystemStorage
> AKA: 990tony Paravane, eightbar specialist
>
>
More information about the Server-devel
mailing list