The Technology Magazine.

Full width home advertisement

Android

Linux

Post Page Advertisement [Top]

Squid proxy hanging issue: Max File Descriptors fixed

We faced a squid proxy hanging issue at our office network. We restarted squid and it started working fine, but the issue came back after few days.

Here is the Details of the issue, and how it was fixed:







/etc/squid/cache.log shows:
#vi /var/log/squid/cache.log
2016/10/14 05:47:08 kid1| WARNING! Your cache is running out of filedescriptors
2016/10/14 05:47:24 kid1| WARNING! Your cache is running out of filedescriptors
2016/10/14 05:47:52 kid1| WARNING! Your cache is running out of filedescriptors
2016/10/14 05:49:20 kid1| WARNING! Your cache is running out of filedescriptors
2016/10/14 05:49:36 kid1| WARNING! Your cache is running out of filedescriptors
2016/10/14 05:49:52 kid1| WARNING! Your cache is running out of filedescriptors
2016/10/14 05:50:08 kid1| WARNING! Your cache is running out of filedescriptors
2016/10/14 05:51:56 kid1| WARNING! Your cache is running out of filedescriptors

Solution:

The solution to the issue was to increase squid max file descriptors

To increase the squid MAX FILE DESCRIPTORS:
vi /etc/conf.d/squid
# Max. number of filedescriptors to use. You can increase this on a busy
# cache to a maximum of (currently) 8192 filedescriptors. Default is 1024.
SQUID_MAXFD=16384
Then restart the squid to fix the issue permanently
#/etc/init.d/squid restart

No comments:

Post a Comment

Dear visitor,
Please do not post spam. All comments will be moderated before approval.

Bottom Ad [Post Page]

| Designed by Techeia.com