Squid Unexpected Crash and not Starting

File size limit exceeded (core dumped)

My squid was working fine from months and suddenly one day it stopped, i have not touched conf file or server at all. so after struggling a lot (un-install install) with with squid i found out that there is a debug mod of squid, start your squid with this

#
/usr/local/squid/sbin/squid -N -d 1 -D
#

and in output i found

#
File size limit exceeded (core dumped)
#

this was very new thing for me that default squid store is of 2GB MAX.

#
[root@vps sbin]# du -sh /usr/local/squid/var/logs/store.log
2.1G    /usr/local/squid/var/logs/store.log
#

and when store size increases squid stop working so there are 2 ways

1) (quick option) delete the store.log and start squid with “/usr/local/squid/sbin/squid -N -d 1 -D” and it will be recreated

2) (batter option) recompile squid with large file support.

#
/configure --enable-icmp --enable-kill-parent-hack --enable-ssl --enable-linux-netfilter --enable-large-cache-files --enable-follow-x-forwarded-for --with-large-files
#

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.