Solved

Squid performance problems

Posted on 2009-04-09
5
334 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 76

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 61

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now