[squid-users] Help, long response time(2 seconds) in squid!

徐永健 yongjianchn at sina.com
Tue Nov 10 08:49:27 UTC 2015


Hi, All:
I tried to use squid as a web cache server today, but when I test it with http_load, I found squid may have a latency of 2 seconds in some cases.
Someone help me? Thanks!
The test is
-------
http_load -parallel 1 -seconds 20 url.txt
# the content in url.txt is `http://10.210.136.51:3128/xyj/1`
------
config for squid is 
-----
http_port 3128 accel vhost vport
cache_peer 10.210.136.51 parent 8888 0
# use mem only
cache_mem 1000 MB
-----
The access log
-----
1447142491.264     39 10.210.136.54 TCP_MEM_HIT_ABORTED/200 4165 GET http://10.210.136.51:3128/xyj/1 - HIER_NONE/- application/octet-stream
1447142491.283     37 10.210.136.54 TCP_MEM_HIT_ABORTED/200 4165 GET http://10.210.136.51:3128/xyj/1 - HIER_NONE/- application/octet-stream
1447142493.288   2023 10.210.136.54 TCP_MEM_HIT_ABORTED/200 4165 GET http://10.210.136.51:3128/xyj/1 - HIER_NONE/- application/octet-stream # 2023 ms! why?
1447142493.307   2023 10.210.136.54 TCP_MEM_HIT_ABORTED/200 4165 GET http://10.210.136.51:3128/xyj/1 - HIER_NONE/- application/octet-stream # 2023 ms! why?
1447142493.326     38 10.210.136.54 TCP_MEM_HIT_ABORTED/200 4165 GET http://10.210.136.51:3128/xyj/1 - HIER_NONE/- application/octet-stream
1447142493.348     40 10.210.136.54 TCP_MEM_HIT_ABORTED/200 4165 GET http://10.210.136.51:3128/xyj/1 - HIER_NONE/- application/octet-stream
-----


More information about the squid-users mailing list