Solved

Squid performance problems

Posted on 2009-04-09
5
339 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 78

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

759 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