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_at_squid ~]# cat /tmp/tmp_lsof.1 |wc -l
>> 3398
>> [root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep UDP |wc -l
>> 6
>> [root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep ESTABLISHED |wc -l
>> 3134
>> [root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep TIME_WAIT |wc -l
>> 0
>> [root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep CLOSE_WAIT |wc -l
>> 1
>> [root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep LISTEN |wc -l
>> 8
>> [root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep ":53" |wc -l
>> 73
>> [root_at_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_at_squid ~]# lsof -u squid -a -i TCP -n -P >/tmp/tmp_lsof.1
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |wc -l
2023
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep UDP |wc -l
0
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep ESTABLISHED |wc -l
1841
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep TIME_WAIT |wc -l
0
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep CLOSE_WAIT |wc -l
1
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep ":80" |wc -l
2009
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep LISTEN |wc -l
8
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep ":3129" |wc -l
4
[root_at_squid ~]#
[root_at_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_at_squid ~]# cat /tmp/tmp_lsof.2
|wc -l
2170
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep UDP |wc -l
0
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep ESTABLISHED |wc -l
1982
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep TIME_WAIT |wc -l
0
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep CLOSE_WAIT |wc -l
1
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep LISTEN |wc -l
28
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep ":80" |wc -l
2133
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep ":3129" |wc -l
4
[root_at_squid ~]# ^C
==========================
after sometime :
[root_at_squid ~]# ^C
[root_at_squid ~]# lsof -u squid -a -i TCP -n -P >/tmp/tmp_lsof.1
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |wc -l
2250
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep UDP |wc -l
0
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep ESTABLISHED |wc -l
2078
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep TIME_WAIT |wc -l
0
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep CLOSE_WAIT |wc -l
4
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep ":80" |wc -l
2236
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep LISTEN |wc -l
8
[root_at_squid ~]# cat /tmp/tmp_lsof.1 |grep ":3129" |wc -l
4
[root_at_squid ~]#
[root_at_squid ~]#
[root_at_squid ~]#
[root_at_squid ~]#
[root_at_squid ~]#
[root_at_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_at_squid ~]# cat /tmp/tmp_lsof.2
|wc -l
2184
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep UDP |wc -l
0
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep ESTABLISHED |wc -l
1999
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep TIME_WAIT |wc -l
0
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep CLOSE_WAIT |wc -l
4
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep LISTEN |wc -l
28
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep ":80" |wc -l
2149
[root_at_squid ~]# cat /tmp/tmp_lsof.2 |grep ":3129" |wc -l
4
[root_at_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.Received on Fri Nov 08 2013 - 00:51:27 MST
This archive was generated by hypermail 2.2.0 : Fri Nov 08 2013 - 12:00:20 MST