cent7 환경에서 squid 연결이 안되서 현상이 가끔 나오고
netstat 로 확인시 socket_close 로 상태로 되면서 접속이 안됨.
squid 재시작 하면 정상 작동함.
찾은 원인은 swap 디스트를 기존은 5기가 이었는데 이것을 다 사용해서 문제가 발생함
swap disk 공간을 20기가를 추가해서 총 25기로 변경함
======================================================================
cent7 squid swap disk
rpm -qa | grep squid
squid-3.5.20-17.el7_9.8.x86_64
free -h
==================================================
total used free shared buff/cache available
Mem: 62G 47G 2.1G 7.4M 12G 14G
Swap: 24G 12G 12G
==================================================
cent6
rpm -qa | grep squid
squid-3.1.23-24.el6.x86_64
==================================================
[root@s21071110 ~]# free -h
total used free shared buffers cached -/+ buffers/cache
Mem: 47G 46G 287M 4K 171M 2.1G: 44G 2.6G
Swap: 999M 271M 728M
=============================================================
In the cent7 environment, squid cannot be connected, so the phenomenon sometimes occurs
When checking with netstat, the status is set to socket_close and connection is not possible.
Restarting squid works fine.
The cause I found was that the existing swap disk was 5 gigabytes, but the problem occurred because it was used up.
Changed the swap disk space by adding 20 gigabytes to a total of 25 gigabytes.