Home > other > Squid: too slow for some websites

Squid: too slow for some websites

March 5Hits:4
Advertisement

Dear members,

We have two squid servers (2.5.STABLE12), first on RHEL 4 and other on FreeBSD 6.1. Users are connected to Squid Servers, and Squid Servers are connected to Gateway.

My problem is that our own website.. say mysite.com is opening very slow, every user is complaining.
If we bypass squid, then its very fine. We also needs to block caching of our website. No page/images should be cached of our website at all because its a dynamic site and we need to view latest contents quickly after uploads.

Both squid have identical squid.conf (apart from directory paths) and the strange thing is we are unable to open some websites(or extremely slow) like howtoforge.com, mysite.com using when connecting with RHEL but things improves with FreeBSD. There's are 100 users connected with RHEL and around 75 with FreeBSD. Some users are using Linux while others are on Windows but facing the same problem.

Here is my squid.conf (from bsd squid), I request you to please have a look and advice:

Code:

http_port 3128  hierarchy_stoplist cgi-bin ?  acl QUERY urlpath_regex cgi-bin \?  no_cache deny QUERY  cache_mem 512 MB  cache_dir ufs /usr/local/squid/cache 15360 16 256  cache_access_log /usr/local/squid/logs/access.log  cache_log /dev/null  cache_store_log none  auth_param basic children 5  auth_param basic realm Squid proxy-caching web server  auth_param basic credentialsttl 2 hours  auth_param basic casesensitive off  refresh_pattern ^ftp:           1440    20%     10080  refresh_pattern ^gopher:        1440    0%      1440  refresh_pattern .               0       20%     4320  acl all src 0.0.0.0/0.0.0.0  acl manager proto cache_object  acl localhost src 127.0.0.1/255.255.255.255  acl to_localhost dst 127.0.0.0/8  acl SSL_ports port 443 563  acl CONNECT method CONNECT  acl ournet src 192.168.0.0/255.255.0.0  acl except src 192.168.50.199/255.255.255.255  acl vpn src 10.0.0.0/255.0.0.0  acl block_url url_regex "/etc/sites.txt"  acl nocachedomains dstdomain .mysite.com  http_access allow manager localhost  http_access deny manager  http_access deny !Safe_ports  http_access deny CONNECT !SSL_ports  http_access allow except  http_access deny ournet block_url  http_access allow ournet  http_access allow vpn  http_access deny all  always_direct allow nocachedomains  no_cache deny nocachedomains  http_reply_access allow all  icp_access allow all  httpd_accel_port 80  httpd_accel_host virtual  httpd_accel_with_proxy on  httpd_accel_uses_host_header on  logfile_rotate 7  coredump_dir /usr/local/squid/cache

Answers

Any errors in your logs? did you disable SELinux on RedHat?

Tags:

Related Articles

  • Squid: too slow for some websitesMarch 5

    Dear members, We have two squid servers (2.5.STABLE12), first on RHEL 4 and other on FreeBSD 6.1. Users are connected to Squid Servers, and Squid Servers are connected to Gateway. My problem is that our own website.. say mysite.com is opening very sl

  • Do access logs (from nginx) slow down a website?September 28

    Does it slow down a website if your webserver (in my case, nginx) is writing to an access log? I'm mostly wondering if it's noticeable. Plus, what's the point of knowing the user agents / ips that have visited? --------------Solutions------------- I

  • Too many categories drastically slow down my websiteOctober 22

    I'm building a WordPress website that needs something like 7.000 categories. I added them, but now I have very long loading times. Pages need something like 30-40 seconds to load completely, and I'm looking for a way to improve that and make the webs

  • How slow is your website?

    How slow is your website?July 26

    Broadband connections mean nothing for users if your site is slow because it's poorly coded or thought out. YSlow, a new plug-in that integrates with Firebug , has just been released by Yahoo's Expectional Performance Team to help you pinpoint and fi

  • How can I test how fast or slow my wordpress website it?

    How can I test how fast or slow my wordpress website it?March 2

    I have my FIRST wordpress website and I love it, however I'm not sure if it's my browser (Firefox 8.0.1 for Mac) or my computer or the website itself but it's going really slow. MY SITE is in the finalizing stages and I want to make sure it's smooth.

  • Squid Running Slow with ntlm AuthenticationSeptember 24

    We seem to have an issue running squid on our windows box. We are using NTLM to authenticate users on our active directory, but it seems t be 'slow' for users that are accessing it over the WAN. Users on the same subnet as the server seem to be ok. W

  • qTranslate slows down my website April 6

    When the qTranslate plugin is activated, my website is very slow. If the plugin is deactivated, the website opens faster. How can I speed up the website with the plugin activated?

  • squid proxy slow responseJuly 19

    We are using the squid proxy in our setup and implemented as transparent proxy with user authentication. Before couple of days, while we are trying to setup the iptables the squid started performing very slowly. The searches and responses became 80%

  • Slow loading of website on specific computer (stalling) occasionallyJanuary 28

    I have a problem with slow loading of a website, the problem is only on a specific computer (Windows8), and only in chrome and IE, in Firefox the problem does not arise. We have several other computers (windows7/8/8.1) using the same website without

  • Internet is slow on some websites: Can't login to StackExchange using Google accountJuly 24

    I recently switched to windows 8.1 (64 bit) on my new laptop. While the internet for some websites is fast enough, but it slows down on some other websites and even doesn't open them, for example I can't sign in to StackExchange using Google Account

  • Squid: how to block a website, but allow access to certain foldersOctober 15

    I want to block gstatic.com website in Squid, but allow access to gstatic.com/recaptcha/*. When I write this in the white list: gstatic\.com/recaptcha/* it doesn't work. When I write the domain name: gstatic\.com It allows access to the entire websit

  • wp_posts query slowing down my websiteDecember 14

    My website's been incredibly slow and I installed the query monitor plugin to learn more about the issues that caused this. When loading my index page, the following query takes 0,2412 (seconds?!) to load, and it's coloured in red in the plugin so I

  • Firefox slow at loading websites on Ubuntu 14.04December 24

    I am having a little problem with Firefox on my Ubuntu, and I was wondering if someone could help me. The problem is that my Firefox started to act very slow after the v43.0 update. I am using Ubuntu 14.04 LTS 64bit. Every page that I try to open tak

  • IE8 Page VERY Slow on New WebsiteOctober 20

    I've recently built a website from scratch which I'm very proud of (a new feat for me!) and have begun testing it in dreaded IE. I've noticed that in IE8 if I want to hover over any link it just takes a long time to do (upwards of 0.5seconds to recog

  • Slow Connection/DNS/Website?May 19

    We have a new site setup at seonky.com. As it's a new site the number of users on the site is nothing that big, however we have already resized our server to try and resolve instances of poor performance. It does not look to me that the server is slo

  • is memcache slowing down my website?February 3

    Hi I have a brand new website, the upload time was around 2 seconds and after installing Memcache it s around 10 seconds, what coulds be causing this issue? website is in drupal6 --------------Solutions------------- I can not post an comment? Anyway,

  • Can the .htaccess file slow down a website to a crawl? If so, are there better ways to solve these problems with different rewrite rules and such?May 1

    here is my htaccess file...... RewriteCond %{REQUEST_URI} ^/patients/billing/FAQ_billing\.html$ [OR] RewriteCond %{REQUEST_URI} ^/patients/billing/getintouch\.html$ RewriteRule ^patients/billing/(.*)\.html$ $1.php [L,NC] RewriteCond %{REQUEST_URI} ^/

  • Memcached is slowing down the website in VirtualBox December 9

    I noticed our web project (Drupal) runs slower when it's using memcached in the virtual box. The page load time is more the twice as fast without memcached. I haven't noticed any unnatural memcached behavior. The virtual box is (using vagrant): Debia

  • Filter Websites via Squid

    Filter Websites via SquidSeptember 23

    I would like to install Squid to block all the websites and only allow a few websites (whitelist). Each department will have different rules. For example on the Sales department - all the websites will be blocked and only allow a few whitelist websit

  • My wordpress website admin panel loads very slow, what can i do about that? March 14

    I am having a very slow load time for long time now, I read absolutely everything that I could about how to speed up my WordPress website hosted on azure, However there things that I am not capable to do because I don't have the right knowledge. I do

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.433 s.