Slow Web Browsing, server Gentoo 3.10.25, running a proxy using Squid ver 3.3.8
Hi Everyone
I have an existing Gentoo Server setup, the machine does load balancing between two ISP links. The one line is for mail, the second is suppose to be for browsing. The staff constantly complain thing's are slow and timeout allot. They use https sites for most of the functions being an accounting and audit firm. One of the directors tried to connect to a banking site and it was timing out. I am not sure where the best place to start looking for where the issues lie are. I ran the following command which gave me the output on squid. "squidclient mgr:info" Based on the bellow output are there any recommendations I can change on squid to ensure it is running at peak performance? Thanks in Advance. " HTTP/1.1 200 OK Server: squid/3.3.8 Mime-Version: 1.0 Date: Mon, 28 Jul 2014 10:20:15 GMT Content-Type: text/plain Expires: Mon, 28 Jul 2014 10:20:15 GMT Last-Modified: Mon, 28 Jul 2014 10:20:15 GMT X-Cache: MISS from mail X-Cache-Lookup: MISS from mail:3128 Via: 1.1 mail (squid/3.3.8) Connection: close Squid Object Cache: Version 3.3.8 Start Time: Mon, 28 Jul 2014 10:11:18 GMT Current Time: Mon, 28 Jul 2014 10:20:15 GMT Connection information for squid: Number of clients accessing cache: 21 Number of HTTP requests received: 1348 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: 150.5 Average ICP messages per minute since start: 0.0 Select loop called: 2443656 times, 0.220 ms avg Cache information for squid: Hits as % of all requests: 5min: 2.8%, 60min: 2.4% Hits as % of bytes sent: 5min: 0.3%, 60min: 0.6% Memory hits as % of hit requests: 5min: 0.0%, 60min: 0.0% Disk hits as % of hit requests: 5min: 9.1%, 60min: 8.7% Storage Swap size: 92156 KB Storage Swap capacity: 90.0% used, 10.0% free Storage Mem size: 7480 KB Storage Mem capacity: 2.9% used, 97.1% free Mean Object Size: 34.62 KB Requests given to unlinkd: 564 Median Service Times (seconds) 5 min 60 min: HTTP Requests (All): 4.79440 2.94900 Cache Misses: 5.06039 3.66001 Cache Hits: 0.00000 0.00000 Near Hits: 7.38455 7.38455 Not-Modified Replies: 0.00000 0.00000 DNS Lookups: 7.43538 8.49361 ICP Queries: 0.00000 0.00000 Resource usage for squid: UP Time: 537.401 seconds CPU Time: 3.260 seconds CPU Usage: 0.61% CPU Usage, 5 minute avg: 0.53% CPU Usage, 60 minute avg: 0.55% Process Data Segment Size via sbrk(): 27956 KB Maximum Resident Size: 114112 KB Page faults with physical i/o: 0 Memory usage for squid via mallinfo(): Total space in arena: 28088 KB Ordinary blocks: 24191 KB 166 blks Small blocks: 0 KB 0 blks Holding blocks: 2956 KB 4 blks Free Small blocks: 0 KB Free Ordinary blocks: 3897 KB Total in use: 3897 KB 13% Total free: 3897 KB 13% Total size: 31044 KB Memory accounted for: Total accounted: 12431 KB 40% memPool accounted: 12431 KB 40% memPool unaccounted: 18613 KB 60% memPoolAlloc calls: 246474 memPoolFree calls: 250893 File descriptor usage for squid: Maximum number of file descriptors: 4096 Largest file desc currently in use: 308 Number of file desc currently in use: 273 Files queued for open: 0 Available number of file descriptors: 3823 Reserved number of file descriptors: 100 Store Disk files open: 0 Internal Data Structures: 2736 StoreEntries 323 StoreEntries with MemObjects 301 Hot Object Cache Items 2662 on-disk objects " |
What info gives
Quote:
|
Thanks amilo
Result below mail ~ # free -h total used free shared buffers cached Mem: 7.7G 5.1G 2.6G 0B 465M 3.8G -/+ buffers/cache: 927M 6.8G Swap: 2.0G 0B 2.0G mail ~ # |
Update
Had the telephone company come fix the one adsl line. I updated squid to the latest version and updated the configuration for it. The internet is working like a dream.
I was looking in all the wrong places when it turnend out to be the one adsl line not working correctly and routing or load balancing on the server. Now the the adsl line is fixed browsing was working no errors from squid timing out. Next challenge is the fail over which partially works, but that is for a new thread. |
All times are GMT -5. The time now is 02:51 AM. |