Saturday, April 19, 2014

Max Filedescriptor SQUID 3.4

2014/04/19 09:18:40 kid1| comm_open: socket failure: (24) Too many open files
2014/04/19 09:18:40 kid1| '/usr/luscaX/share/errors/en-us/ERR_CONNECT_FAIL': (24) Too many open files
2014/04/19 09:18:40 kid1| WARNING: Error Pages Missing Language: en-us

---***---
Solusi

Cek max filedescriptor
root@V:/usr/luscaX# bin/squidclient -h10.20.1.12 -p3399 mgr:info |grep file
Sending HTTP request ... done.
        Maximum number of file descriptors:   1024
        Largest file desc currently in use:   824
        Number of file desc currently in use: 824
        Available number of file descriptors: 100
        Reserved number of file descriptors:   100
        Store Disk files open:                  19

Tambahkan max_filedesc 8192, pada squid.conf
root@V:/usr/luscaX# sbin/squid -k shutdown
root@V:/usr/luscaX# sbin/squid -sYDC

Cek ulang max filedescriptor
root@V:/usr/luscaX# bin/squidclient -h10.20.1.12 -p3399 mgr:info |grep file
Sending HTTP request ... done.
        Maximum number of file descriptors:   8192
        Largest file desc currently in use:   1338
        Number of file desc currently in use:  909
        Available number of file descriptors: 7283
        Reserved number of file descriptors:   100
        Store Disk files open:                  19