Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid cachemgr.cgi

    Scheduled Pinned Locked Moved Indonesian
    4 Posts 3 Posters 4.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zass
      last edited by

      Salam , nak tanya bagaimana nak lihat 'HITS' dalam squid cachemgr.

      Ada terbaca berkenaan cachemgr.cgi

      Terima Kasih

      zass
      Malaysia

      1 Reply Last reply Reply Quote 0
      • G
        grage95
        last edited by

        jika services squid menggunakan IP 127.0.0.1 dan port 80 (transparent mode on pfsense)

        for squid2.x.x use squidclient -p 80 cache_object://localhost/info
        for lusca/cacheboy squidclient -p 80 cache_object://localhost/info / squidclient -p 80 cache_object://localhost/curcounters

        jika services squid menggunakan IP 127.0.0.1 dan port 3128, gunakan squidclient mgr:info / squidclient mgr:curcounters

        squidclient mgr:info

        HTTP/1.0 200 OK
        Server: Lusca/LUSCA_HEAD
        Date: Mon, 26 Oct 2009 14:14:20 GMT
        Content-Type: text/plain
        Expires: Mon, 26 Oct 2009 14:14:20 GMT
        X-Cache: MISS from www.hikmah-teknologi.co.cc
        X-Cache-Lookup: MISS from www.hikmah-teknologi.co.cc:3128
        Via: 1.0 proxy.hikmah-teknologi.net:3128 (Lusca/LUSCA_HEAD)
        Connection: close

        Squid Object Cache: Version LUSCA_HEAD
        Start Time:    Mon, 26 Oct 2009 08:41:37 GMT
        Current Time:  Mon, 26 Oct 2009 14:14:20 GMT
        Connection information for squid:
                Number of clients accessing cache:      0
                Number of HTTP requests received:      51484
                Number of ICP messages received:        0
                Number of ICP messages sent:    0
                Number of queued ICP replies:  0
                Request failure ratio:  0.00
                Average HTTP requests per minute since start:  154.7
                Average ICP messages per minute since start:    0.0
                Select loop called: 904748 times, 22.065 ms avg
        Cache information for squid:
                Request Hit Ratios:    5min: 49.4%, 60min: 34.8%
                Byte Hit Ratios:        5min: 31.2%, 60min: 7.9%
                Request Memory Hit Ratios:      5min: 1.4%, 60min: 1.5%
                Request Disk Hit Ratios:        5min: 89.5%, 60min: 87.4%

                Storage Swap size:      2555762 KB
                Storage Mem size:      6140 KB
                Mean Object Size:      9.96 KB
                Requests given to unlinkd:      0
        Median Service Times (seconds)  5 min    60 min:
                HTTP Requests (All):  0.24524  0.61549
                Cache Misses:          1.38447  1.38447
                Cache Hits:            0.00919  0.01469
                Near Hits:            0.68577  0.42149
                Not-Modified Replies:  0.00379  0.00286
                DNS Lookups:          0.00000  0.00000
                ICP Queries:          0.00000  0.00000
        Resource usage for squid:
                UP Time:        19962.846 seconds
                CPU Time:      566.283 seconds
                CPU Usage:      2.84%
                CPU Usage, 5 minute avg:        5.64%
                CPU Usage, 60 minute avg:      4.37%
                Process Data Segment Size via sbrk(): 0 KB
                Maximum Resident Size: 46340 KB
                Page faults with physical i/o: 3
        Memory accounted for:
                Total accounted:        24564 KB
                memPoolAlloc calls: 8456869
                memPoolFree calls: 7916206
        File descriptor usage for squid:
                Maximum number of file descriptors:  235929
                Largest file desc currently in use:    128
                Number of file desc currently in use:  69
                Files queued for open:                  0
                Available number of file descriptors: 235860
                Reserved number of file descriptors:  100
                Store Disk files open:                  1
                IO loop method:                    kqueue
        Internal Data Structures:
                256734 StoreEntries
                  1457 StoreEntries with MemObjects
                  1440 Hot Object Cache Items
                256664 on-disk objects

        squidclient mgr:curcounters

        HTTP/1.0 200 OK
        Server: Lusca/LUSCA_HEAD
        Date: Mon, 26 Oct 2009 14:15:13 GMT
        Content-Type: text/plain
        Expires: Mon, 26 Oct 2009 14:15:13 GMT
        X-Cache: MISS from www.hikmah-teknologi.co.cc
        X-Cache-Lookup: MISS from www.hikmah-teknologi.co.cc:3128
        Via: 1.0 proxy.hikmah-teknologi.net:3128 (Lusca/LUSCA_HEAD)
        Connection: close

        info.client_side.conn_count=19
        info.http.conn_count=11
        info.clientdb.num_clients=0
        info.client_side.num_http_requests=51604
        info.icp.num_icp_received=0
        info.icp.num_icp_sent=0
        info.icp.num_icp_replies=0
        info.client_side.request_failure_ratio=0.00
        info.client_side.req.hit_ratio.5min=41.9
        info.client_side.req.hit_ratio.60min=34.0
        info.client_side.byte.hit_ratio.5min=12.1
        info.client_side.byte.hit_ratio.60min=4.8
        info.client_side.mem.hit_ratio.5min=1.1
        info.client_side.mem.hit_ratio.60min=1.5
        info.client_side.disk.hit_ratio.5min=86.7
        info.client_side.disk.hit_ratio.60min=87.1

        info.store.disk.sizekb=2555890
        info.store.mem.sizekb=6144
        info.fd.max_count=235929
        info.fd.largest_count=128
        info.fd.current_count=62

        1 Reply Last reply Reply Quote 0
        • Z
          zass
          last edited by

          Terima kasih  :D cukup lengkap rasanya, mahu melihat keberkesanan / effectiveness

          squid yang terpasang, mungkin dari sini dapat di ubah squid memory size, max filesize

          atau cache size untuk lebih baik lagi   ;)

          1 Reply Last reply Reply Quote 0
          • Z
            zchellpy
            last edited by

            Kalo IP servis squid nya 192.168.5.1 gimana om grage perintah buat liat nya…???

            Thanks

            Zchellpy

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.