Search squid archive

Re: is there any thing wrong from cache manager logs ?!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eliezer Croitoru-2 wrote
> OK so the next step since I didn't noticed couple things(IPV6 bindings)
> 
> On 11/08/2013 01:21 AM, Dr.x wrote:
>> anyway , ive made another test
>> before the degredation , 1st 5 minutes of squid
>> [root@squid ~]# cat /tmp/tmp_lsof.1 |wc -l
>> 3398
>> [root@squid ~]# cat /tmp/tmp_lsof.1 |grep UDP |wc -l
>> 6
>> [root@squid ~]# cat /tmp/tmp_lsof.1 |grep ESTABLISHED |wc -l
>> 3134
>> [root@squid ~]# cat /tmp/tmp_lsof.1 |grep TIME_WAIT |wc -l
>> 0
>> [root@squid ~]# cat /tmp/tmp_lsof.1 |grep CLOSE_WAIT |wc -l
>> 1
>> [root@squid ~]# cat /tmp/tmp_lsof.1 |grep LISTEN |wc -l
>> 8
>> [root@squid ~]# cat /tmp/tmp_lsof.1 |grep ":53" |wc -l
>> 73
>> [root@squid ~]# cat /tmp/tmp_lsof.1 |grep ":3129" |wc -l
>> 5
> A small thing:
> The above last line did not made any sense to me since there is no 
> possible way for 3k established connections while only 5 of them are 
> sockets for tproxy..
> 
> SO The lsof command(from before) is showing only ipv4 sockets which are 
> probably the outgoing connections from squid towards the net..
> Change it to show all TCP connections like this:
> ##START
> lsof -u squid -a -i TCP -n -P >/tmp/tmp_lsof.1
> cat /tmp/tmp_lsof.1 |wc -l
> cat /tmp/tmp_lsof.1 |grep UDP |wc -l
> cat /tmp/tmp_lsof.1 |grep ESTABLISHED |wc -l
> cat /tmp/tmp_lsof.1 |grep TIME_WAIT |wc -l
> cat /tmp/tmp_lsof.1 |grep CLOSE_WAIT |wc -l
> cat /tmp/tmp_lsof.1 |grep ":80" |wc -l
> cat /tmp/tmp_lsof.1 |grep LISTEN |wc -l
> cat /tmp/tmp_lsof.1 |grep ":TPROXYPORT" |wc -l
> ##END
> (TPROXYPORT IS the port from squid.conf)
> 
> Which maybe will show more info..
> If you want to see how many TCP FD are being used on the whole system use:
> ##END
> lsof  -i TCP -n -P  >/tmp/tmp_lsof.2
> cat /tmp/tmp_lsof.2 |wc -l
> cat /tmp/tmp_lsof.2 |grep UDP |wc -l
> cat /tmp/tmp_lsof.2 |grep ESTABLISHED |wc -l
> cat /tmp/tmp_lsof.2 |grep TIME_WAIT |wc -l
> cat /tmp/tmp_lsof.2 |grep CLOSE_WAIT |wc -l
> cat /tmp/tmp_lsof.2 |grep LISTEN |wc -l
> cat /tmp/tmp_lsof.2 |grep ":80" |wc -l
> cat /tmp/tmp_lsof.2 |grep ":TPROXYPORT" |wc -l
> ##END
> 
> These lines have a small addition which can help understand the 
> situation a bit more.
> 
> Since you do have about 3k connections


[root@squid ~]# lsof -u squid -a -i TCP -n -P >/tmp/tmp_lsof.1
[root@squid ~]# cat /tmp/tmp_lsof.1 |wc -l
2023
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep UDP |wc -l
0
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep ESTABLISHED |wc -l
1841
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep TIME_WAIT |wc -l
0
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep CLOSE_WAIT |wc -l
1
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep ":80" |wc -l
2009
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep LISTEN |wc -l
8
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep ":3129" |wc -l 
4
[root@squid ~]# 
[root@squid ~]# lsof  -i TCP -n -P  >/tmp/tmp_lsof.2
cat /tmp/tmp_lsof.2 |wc -l
cat /tmp/tmp_lsof.2 |grep UDP |wc -l
cat /tmp/tmp_lsof.2 |grep ESTABLISHED |wc -l
cat /tmp/tmp_lsof.2 |grep TIME_WAIT |wc -l
cat /tmp/tmp_lsof.2 |grep CLOSE_WAIT |wc -l
cat /tmp/tmp_lsof.2 |grep LISTEN |wc -l
cat /tmp/tmp_lsof.2 |grep ":80" |wc -l
cat /tmp/tmp_lsof.2 |grep ":3129" |wc -l [root@squid ~]# cat /tmp/tmp_lsof.2
|wc -l
2170
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep UDP |wc -l
0
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep ESTABLISHED |wc -l
1982
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep TIME_WAIT |wc -l
0
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep CLOSE_WAIT |wc -l
1
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep LISTEN |wc -l
28
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep ":80" |wc -l
2133
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep ":3129" |wc -l 
4
[root@squid ~]# ^C

==========================
after sometime :

[root@squid ~]# ^C
[root@squid ~]# lsof -u squid -a -i TCP -n -P >/tmp/tmp_lsof.1
[root@squid ~]# cat /tmp/tmp_lsof.1 |wc -l
2250
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep UDP |wc -l
0
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep ESTABLISHED |wc -l
2078
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep TIME_WAIT |wc -l
0
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep CLOSE_WAIT |wc -l
4
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep ":80" |wc -l
2236
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep LISTEN |wc -l
8
[root@squid ~]# cat /tmp/tmp_lsof.1 |grep ":3129" |wc -l 
4
[root@squid ~]# 
[root@squid ~]# 
[root@squid ~]# 
[root@squid ~]# 
[root@squid ~]# 
[root@squid ~]# lsof  -i TCP -n -P  >/tmp/tmp_lsof.2
cat /tmp/tmp_lsof.2 |wc -l
cat /tmp/tmp_lsof.2 |grep UDP |wc -l
cat /tmp/tmp_lsof.2 |grep ESTABLISHED |wc -l
cat /tmp/tmp_lsof.2 |grep TIME_WAIT |wc -l
cat /tmp/tmp_lsof.2 |grep CLOSE_WAIT |wc -l
cat /tmp/tmp_lsof.2 |grep LISTEN |wc -l
cat /tmp/tmp_lsof.2 |grep ":80" |wc -l
cat /tmp/tmp_lsof.2 |grep ":3129" |wc -l [root@squid ~]# cat /tmp/tmp_lsof.2
|wc -l
2184
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep UDP |wc -l
0
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep ESTABLISHED |wc -l
1999
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep TIME_WAIT |wc -l
0
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep CLOSE_WAIT |wc -l
4
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep LISTEN |wc -l
28
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep ":80" |wc -l
2149
[root@squid ~]# cat /tmp/tmp_lsof.2 |grep ":3129" |wc -l 
4
[root@squid ~]# 



-----
Dr.x
--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/is-there-any-thing-wrong-from-cache-manager-logs-tp4663156p4663185.html
Sent from the Squid - Users mailing list archive at Nabble.com.




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux