LinuxQuestions.org
Visit Jeremy's Blog.
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-21-2008, 11:18 PM   #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, 01:50 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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-24-2008, 11:30 PM   #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-24-2008, 11:50 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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, 10: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 01:59 AM
traffic spliiting using squid sunethj Linux - Networking 4 12-14-2006 08:33 AM
Need help with Squid and capturing url traffic? atl02wrx Linux - Software 5 06-25-2005 05:36 PM
squid traffic control tarak4u Linux - Networking 0 03-17-2004 02:52 AM
Help with Squid and traffic shaping dexteroo Linux - Networking 0 10-07-2003 03:43 PM

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

All times are GMT -5. The time now is 04:04 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