Solved

Squid performance problems

Posted on 2009-04-09
5
338 Views
Last Modified: 2013-11-08
Running
CentOS 5.2
Squid Version 3.0.STABLE10
Server is a VM with 1 CPU and 2 GB of RAM allocated.

During working hours, the CPU on the server peaks at 100% for a minute or two about once an hour.  When this happens, all web surfing comes to a half.  Using top, squid is the top process.  I cannot tell why it maxes out the CPU several times per day.  Is it flushing to cache?  Any tips on solving this?

Thanks,
Shannon
0
Comment
Question by:shannon_adams
5 Comments
 

Author Comment

by:shannon_adams
ID: 24107560
I suspected Squid, but I watched it very closely. When it happened again a few minutes ago, I checked the processes using "top". It showed 0% idle and there were 10 or entries for the command "proxy" - all taking over 4% of CPU with one over 40%. After a minute or so, they disappeared and the system was back to normal - 80% or so idle. Can someone shed some light on what might be causing this?
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 24115309
How much storage did you allocate to the cache store?  It might be that the store cache is being reprocessed.

Check the store.log, access.log to see what it is doing when this happens.
0
 
LVL 62

Expert Comment

by:gheist
ID: 24122460
Can you post output of "uptime" and "free"

Have you tried using accept filter?
Does setting null che on disk and half of memory for mem cache help on issue?
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question