<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=924102108-07082018>I do know there is/was a bug the systemd isnt picking
up the filedescriptors with systemd, you might have hit it.
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=924102108-07082018>Im
suspecting your start script is a sysv script invoked by systemd.
</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=924102108-07082018>Try to set the limits within the start script (sysv) so
the correct users ( running squid ) gets the
filedescriptors.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=924102108-07082018>I run Debian 9, with a recompiled squid from debian sid
and that work fine for me atm. <BR>If you use the 4.1 from sid, add the
following changes also. </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=924102108-07082018><BR>/etc/logrotate.d/squid
<BR>
postrotate<BR>
if [ -d /run/systemd/system ] && command systemctl >/dev/null
2>&1 && systemctl is-active --quiet squid.service;
then<BR>
systemctl restart
squid.service<BR>
elif [ -f /var/run/squid.pid ];
then<BR>
test ! -e /var/run/squid.pid || test ! -x /usr/sbin/squid || /usr/sbin/squid -k
rotate<BR>
fi<BR> endscript</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><BR>Try the following and the below the command created
the file /etc/systemd/system/squid.service.d/override.conf <BR>Add there the
following. </DIV>
<DIV> </DIV>
<DIV dir=ltr align=left>systemctl edit squid<BR>[Unit]<BR>After=network.target
network-online.target nss-lookup.target<BR>Wants=network-online.target</DIV>
<DIV> </DIV>
<DIV dir=ltr
align=left>[Service]<BR>LimitNOFILE=8192:65535<BR>User=proxy<BR>Group=proxy</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV dir=ltr align=left>Greetz, </DIV>
<DIV> </DIV>
<DIV dir=ltr align=left>Louis</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=924102108-07082018></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=924102108-07082018> </DIV></SPAN></FONT><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV lang=nl class=OutlookMessageHeader dir=ltr align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Van:</B> squid-users
[mailto:squid-users-bounces@lists.squid-cache.org] <B>Namens </B>Alex
K<BR><B>Verzonden:</B> dinsdag 7 augustus 2018 9:46<BR><B>Aan:</B>
squid-users@lists.squid-cache.org<BR><B>Onderwerp:</B> [squid-users] Squid
File descriptors warning<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>
<DIV>Hi all, <BR></DIV>
<DIV><BR></DIV>
<DIV>I observed the following warning at squid cache logs: <BR></DIV>
<DIV><BR></DIV>
<DIV><SPAN style="FONT-FAMILY: monospace,monospace">WARNING! Your cache is
running out of filedescriptors</SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT><BR></DIV>
<DIV>Googling around I tried to increase the default file descriptors of the
system (I am runnign Debian9 x64 bit), by setting at /etc/sysctl.conf:
<BR></DIV>
<DIV><BR></DIV>
<DIV><SPAN
style="FONT-FAMILY: monospace,monospace">fs.file-max=802762</SPAN></DIV>
<DIV><BR></DIV>
<DIV>Restarted system. Still was receiving the warnings. <BR></DIV>
<DIV><BR></DIV>
<DIV>When checking further I observed that I have the following default
limits: <BR></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV><SPAN style="FONT-FAMILY: monospace,monospace">ulimit -a<BR>core file
size (blocks, -c)
0<BR>data seg size
(kbytes, -d) unlimited<BR>scheduling
priority
(-e) 0<BR>file
size
(blocks, -f) unlimited<BR>pending
signals
(-i) 15338<BR>max locked memory (kbytes,
-l) 64<BR>max memory size
(kbytes, -m) unlimited<BR><B>open
files
(-n) 1024</B><BR>pipe
size (512
bytes, -p) 8<BR>POSIX message queues (bytes, -q)
819200<BR>real-time
priority
(-r) 0<BR>stack
size
(kbytes, -s) 8192<BR>cpu
time
(seconds, -t) unlimited<BR>max user
processes
(-u) 15338<BR>virtual
memory (kbytes, -v)
unlimited<BR>file
locks
(-x) unlimited</SPAN><BR></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Where the "open files" seems to be the related one. <BR></DIV>
<DIV><BR></DIV>
<DIV>I set also the following at squid conf: <BR></DIV>
<DIV><BR></DIV>
<DIV><SPAN style="FONT-FAMILY: monospace,monospace">max_filedescriptors
65535</SPAN></DIV>
<DIV><BR></DIV>
<DIV>I am running a compiled version 3.5.23. <BR></DIV>
<DIV><BR></DIV>
<DIV>I am not sure I have done the correct steps or if I need to tweak the
ulimits also.<BR></DIV>
<DIV>Any experience from your side?</DIV>
<DIV><BR></DIV>
<DIV>Thanx, <BR></DIV>
<DIV>alex<BR></DIV>
<DIV><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>