LinuxQuestions.org
Help answer threads with 0 replies.
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 02-22-2008, 12:18 AM   #1
dablew
Member
 
Registered: Oct 2006
Distribution: CentOS | Fedora | Mint | Ubuntu
Posts: 43

Rep: Reputation: 15
Squid Overwhelmed With Traffic


Hi everyone,

Av setup and using squid as a transparent proxy and pushing through it an average traffic of 6Meg of traffic from about 600 Computers to the internet all through the day.

With this load of traffic squid is freezing after small intervals of time mainly between 45 Mins to 1 Hour - squid basically cant relay requests back to the clients at this times though from the logs one can see it receiving requests.Meaning no-access to the internet during this.
The dell computer am using for the server cannot take more than 2Gig of RAM and am forced to stick with 2Gig which I think can be the other problem.

To deal with this I have set cron jobs to restart squid after every hour which is working fine but giving me issues coz of the many disconnections I have to - connection critical applications - during the many squid restarts.

Has anyone ever come across the same problem and how can I sort this best?Is there a way I can prioritize/maximize memory resources to squid?Currently I have stopped enough services in the server only a few services running and of cos squid.
The server is only serving as cache server.

Thanks in advance!
 
Old 02-23-2008, 02:50 AM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
When the freeze occurs, what does the CPU usage look like? Memory usage? Hard disk activity? Care to show us what your current configuration looks like (only the lines relevant to cache storage)? Perhaps some cache tweaking is in order.
 
Old 02-25-2008, 12:30 AM   #3
dablew
Member
 
Registered: Oct 2006
Distribution: CentOS | Fedora | Mint | Ubuntu
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks win32sux,
Apologies I couldn't respond earlier,
Basically Memory seems to be the issue here coz whenever squid freezes,theres normally about 8MB to 16MB(sometimes even less!)free out of the 2Gig on the server.Most of it used by squid.

Am wondering if there could be a better way to relieve memory without necessarily restarting squid considering the many disconnections I have to go through.
Advice generously.

Thanks again.
 
Old 02-25-2008, 12:50 AM   #4
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by dablew View Post
Memory seems to be the issue here coz whenever squid freezes,theres normally about 8MB to 16MB(sometimes even less!)free out of the 2Gig on the server.Most of it used by squid.
Please post the output of:
Code:
ps aux | grep squid
And also:
Code:
free -m
Quote:
Am wondering if there could be a better way to relieve memory without necessarily restarting squid considering the many disconnections I have to go through.
Please go ahead and post your cache configuration so we can see if improvements could be made to the memory usage setup. You don't need to restart Squid when you make those sort of changes - you just pass the reconfigure option on the command line.

PS: Please also post the output of:
Code:
squid -v
That way we can make sure the versions you have doesn't suffer from a memory leak or something like that. It will also tell us what options your Squid has been compiled with. Did you compile it yourself or is it a distro-provided package?
 
Old 04-07-2008, 11:19 AM   #5
dablew
Member
 
Registered: Oct 2006
Distribution: CentOS | Fedora | Mint | Ubuntu
Posts: 43

Original Poster
Rep: Reputation: 15
Apologies win32sux for not replying earlier -

I have been away for a while on some assignment and didn't well manage to get in touch with you and follow up on this.
Actually the Squid Server was put aside while I was away,pending solution.I will most definitely get in touch when need be.Av truly appreciated your support and advice.

Thanks again all.
 
  


Reply

Tags
squid, traffic


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
bypass traffic through squid sapheroth Linux - Networking 1 02-14-2007 02:59 AM
traffic spliiting using squid sunethj Linux - Networking 4 12-14-2006 09:33 AM
Need help with Squid and capturing url traffic? atl02wrx Linux - Software 5 06-25-2005 06:36 PM
squid traffic control tarak4u Linux - Networking 0 03-17-2004 03:52 AM
Help with Squid and traffic shaping dexteroo Linux - Networking 0 10-07-2003 04:43 PM


All times are GMT -5. The time now is 08:06 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration