LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-28-2014, 05:51 AM   #1
D0zer
Member
 
Registered: Jul 2014
Location: Johannesburg, South Africa
Distribution: Gentoo
Posts: 30

Rep: Reputation: Disabled
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
"
 
Old 07-29-2014, 11:38 AM   #2
amilo
Member
 
Registered: Oct 2011
Location: Nederland
Distribution: Debian, Centos, Ubuntu
Posts: 81

Rep: Reputation: Disabled
What info gives
Quote:
free -h
 
Old 07-29-2014, 02:14 PM   #3
D0zer
Member
 
Registered: Jul 2014
Location: Johannesburg, South Africa
Distribution: Gentoo
Posts: 30

Original Poster
Rep: Reputation: Disabled
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 ~ #
 
Old 08-15-2014, 09:31 AM   #4
D0zer
Member
 
Registered: Jul 2014
Location: Johannesburg, South Africa
Distribution: Gentoo
Posts: 30

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
gentoo, internet, proxy, squid



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run Squid tranparent and web proxy squid in same server baskarang Linux - Server 3 09-09-2012 11:41 PM
allow only two web sites access by squid proxy server singh_chitranjan Linux - Server 1 05-19-2010 09:16 AM
squid as Web proxy server in linux world salimshahzad Linux - Newbie 2 02-01-2010 05:57 AM
My squid server is running slow i have 40 fedora 11 in my squid proxy ashraflinux1@gmail.com Linux - Server 4 09-15-2009 12:17 AM
I want to block the google talk from my squid proxy server ver 2. ameyswi2 Linux - Newbie 3 07-25-2009 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration