Buat temen2 yang sering pake proxy tapi belum begitu expert, sering bingung bagaimana sih cara melihat performa proxy anda, udah berapa yang ke-hit , berapa orang yang mengakses cache anda . Nah dengan tools kecil ini, semua masalah tentang proxy report bisa diatasi meskipun hanya dengan layar console
Cara installnya gampang.
1. Pastikan anda terkoneksi dengan internet ,
2. Masuk ke layar console proxy anda kemudian ketikan perintah perintah berikut
Nah kalo sudah keinstall pake cara ini untuk lihat reportnya
-p maksudnya adalah port yang digunakan , kalo pada proksi kami pake port 3128, kaloanda bisa berkreasi, pake port lain gak masalah.
ini contoh hasil report proxy saya
Sebagai catatan : kami menggunakian ubuntu 9.10 sebagai proxy server
Cara installnya gampang.
1. Pastikan anda terkoneksi dengan internet ,
2. Masuk ke layar console proxy anda kemudian ketikan perintah perintah berikut
sudo apt-get install squidclient
Nah kalo sudah keinstall pake cara ini untuk lihat reportnya
Squidclient –p 3128 mgr:info
-p maksudnya adalah port yang digunakan , kalo pada proksi kami pake port 3128, kaloanda bisa berkreasi, pake port lain gak masalah.
ini contoh hasil report proxy saya
pai@pai:~$ squidclient -p 3128 mgr:info
HTTP/1.0 200 OK
Server: squid/2.7.STABLE6
Date: Thu, 10 Jun 2010 12:01:04 GMT
Content-Type: text/plain
Expires: Thu, 10 Jun 2010 12:01:04 GMT
X-Cache: MISS from pai
X-Cache-Lookup: MISS from pai:3128
Via: 1.0 pai:3128 (squid/2.7.STABLE6)
Connection: close
Squid Object Cache: Version 2.7.STABLE6
Start Time: Thu, 10 Jun 2010 05:46:25 GMT
Current Time: Thu, 10 Jun 2010 12:01:04 GMT
Connection information for squid:
Number of clients accessing cache: 2
Number of HTTP requests received: 131186
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 350.2
Average ICP messages per minute since start: 0.0
Select loop called: 1502314 times, 14.963 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 25.7%, 60min: 21.5%
Byte Hit Ratios: 5min: 28.8%, 60min: 13.4%
Request Memory Hit Ratios: 5min: 23.5%, 60min: 7.8%
Request Disk Hit Ratios: 5min: 40.3%, 60min: 33.1%
Storage Swap size: 821408 KB
Storage Mem size: 8156 KB
Mean Object Size: 11.61 KB
Requests given to unlinkd: 19941
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.68577 0.64968
Cache Misses: 0.94847 0.89858
Cache Hits: 0.00091 0.00179
Near Hits: 0.12783 0.07409
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.02941 0.02941
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 22478.400 seconds
CPU Time: 523.885 seconds
CPU Usage: 2.33%
CPU Usage, 5 minute avg: 3.74%
CPU Usage, 60 minute avg: 3.20%
Process Data Segment Size via sbrk(): 23316 KB
Maximum Resident Size: 0 KB
Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
Total space in arena: 23316 KB
Ordinary blocks: 23211 KB 289 blks
Small blocks: 0 KB 0 blks
Holding blocks: 796 KB 2 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 104 KB
Total in use: 24007 KB 100%
Total free: 104 KB 0%
Total size: 24112 KB
Memory accounted for:
Total accounted: 19012 KB
memPoolAlloc calls: 19950665
memPoolFree calls: 19696565
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 356
Number of file desc currently in use: 282
Files queued for open: 0
Available number of file descriptors: 742
Reserved number of file descriptors: 100
Store Disk files open: 5
IO loop method: epoll
Internal Data Structures:
70841 StoreEntries
1507 StoreEntries with MemObjects
1454 Hot Object Cache Items
70739 on-disk objects
pai@pai:~$
HTTP/1.0 200 OK
Server: squid/2.7.STABLE6
Date: Thu, 10 Jun 2010 12:01:04 GMT
Content-Type: text/plain
Expires: Thu, 10 Jun 2010 12:01:04 GMT
X-Cache: MISS from pai
X-Cache-Lookup: MISS from pai:3128
Via: 1.0 pai:3128 (squid/2.7.STABLE6)
Connection: close
Squid Object Cache: Version 2.7.STABLE6
Start Time: Thu, 10 Jun 2010 05:46:25 GMT
Current Time: Thu, 10 Jun 2010 12:01:04 GMT
Connection information for squid:
Number of clients accessing cache: 2
Number of HTTP requests received: 131186
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 350.2
Average ICP messages per minute since start: 0.0
Select loop called: 1502314 times, 14.963 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 25.7%, 60min: 21.5%
Byte Hit Ratios: 5min: 28.8%, 60min: 13.4%
Request Memory Hit Ratios: 5min: 23.5%, 60min: 7.8%
Request Disk Hit Ratios: 5min: 40.3%, 60min: 33.1%
Storage Swap size: 821408 KB
Storage Mem size: 8156 KB
Mean Object Size: 11.61 KB
Requests given to unlinkd: 19941
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.68577 0.64968
Cache Misses: 0.94847 0.89858
Cache Hits: 0.00091 0.00179
Near Hits: 0.12783 0.07409
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.02941 0.02941
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 22478.400 seconds
CPU Time: 523.885 seconds
CPU Usage: 2.33%
CPU Usage, 5 minute avg: 3.74%
CPU Usage, 60 minute avg: 3.20%
Process Data Segment Size via sbrk(): 23316 KB
Maximum Resident Size: 0 KB
Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
Total space in arena: 23316 KB
Ordinary blocks: 23211 KB 289 blks
Small blocks: 0 KB 0 blks
Holding blocks: 796 KB 2 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 104 KB
Total in use: 24007 KB 100%
Total free: 104 KB 0%
Total size: 24112 KB
Memory accounted for:
Total accounted: 19012 KB
memPoolAlloc calls: 19950665
memPoolFree calls: 19696565
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 356
Number of file desc currently in use: 282
Files queued for open: 0
Available number of file descriptors: 742
Reserved number of file descriptors: 100
Store Disk files open: 5
IO loop method: epoll
Internal Data Structures:
70841 StoreEntries
1507 StoreEntries with MemObjects
1454 Hot Object Cache Items
70739 on-disk objects
pai@pai:~$
cache manager nya seperti nya terpasswd
cb liat di squid.conf ada option ini >>> cachemgr_passwd
kalo ada misal >>>>> cachemgr_passwd khaira all
maka
untuk melihat performa squid dari penanganan akses user
Lihat bagian paling bawah :kalo ada misal >>>>> cachemgr_passwd khaira all
maka
squidclient -p 8080 mgr:info@khaira
untuk melihat performa squid dari penanganan akses user
squidclient -p 8080 mgr:client_list@khaira
TOTALS
ICP : 0 Queries, 0 Hits ( 0%)
HTTP: 187 Requests, 0 Hits ( 92%) ---> ini merupakan performa squid sebenarnya
Ref : http://mrifai.info/2010/06/squidclient-untuk-menampilkan-report-proxy/
EmoticonEmoticon