Package: squid                                                                  
                                                                                
                                                                                
                                                                                
                                                                                
                       
Version: 4.6-1                                                                  
                                                                                
                                                                                
                                                                                
                                                                                
                       
Severity: normal                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                       
Tags: patch                                                                     
                                                                                
                                                                                
                                                                                
                                                                                
                       
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                       
/etc/init.d/squid increases the open file limit (ulimit -n 65535)               
                                                                                
                                                                                
                                                                                
                                                                                
                       
from the default value of 1024. This does not happen when squid                 
                                                                                
                                                                                
                                                                                
                                                                                
                       
is started from systemd, resulting on busy systems in the                       
                                                                                
                                                                                
                                                                                
                                                                                
                       
following errors in /var/log/squid/cache.log :                                  
                                                                                
                                                                                
                                                                                
                                                                                
                       
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                       
2019/08/08 09:59:19 kid1| WARNING! Your cache is running out of filedescriptors 
                                                                                
                                                                                
                                                                                
                                                                                
                       
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                       
Browsing is intermittently slow, or some pages fail to load.                    
                                                                                
                                                                                
                                                                                
                                                                                
                       
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                       
This is easily fixed by the following patch, restoring the                      
                                                                                
                                                                                
                                                                                
                                                                                
                       
pre-systemd behaviour:                                                          
                                                                                
                                                                                
                                                                                
                                                                                
                       
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                       
--- /lib/systemd/system/squid.service   2019-02-19 06:29:20.000000000 +0100     
                                                                                
                                                                                
                                                                                
                                                                                
                       
+++ squid.service       2019-08-08 10:31:42.100000000 +0200                     
                                                                                
                                                                                
                                                                                
                                                                                
                       
@@ -17,6 +17,7 @@                                                               
                                                                                
                                                                                
                                                                                
                                                                                
                       
 ExecStart=/usr/sbin/squid -sYC                                                 
                                                                                
                                                                                
                                                                                
                                                                                
                       
 ExecReload=/bin/kill -HUP $MAINPID                                             
                                                                                
                                                                                
                                                                                
                                                                                
                       
 KillMode=mixed                                                                 
                                                                                
                                                                                
                                                                                
                                                                                
                       
+LimitNOFILE=65535                                                              
                                                                                
                                                                                
                                                                                
                                                                                
                       
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                       
 [Install]                                                                      
                                                                                
                                                                                
                                                                                
                                                                                
                       
 WantedBy=multi-user.target                                                     
                                                                                
                                                                                
                                                                                
                                                                                
                       
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                       
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                       
Sammy Atmadja                                                                   
                                                                                
                                                                                
                                                                                
                                                                                
                       

Disclaimer: https://www.transtrend.com/en/disclaimer/

Reply via email to