LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-15-2009, 12:43 PM   #16
jibskg
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Original Poster
Rep: Reputation: 0

yes my squid working good only stops inbetween cant tell when it will stop, it may work like charm till evening and then suddenly stop, and its never slows down, if its die i dont have to restart the box just restart the squid service only. this is the situation
 
Old 05-15-2009, 05:57 PM   #17
falcom
Member
 
Registered: May 2009
Posts: 102

Rep: Reputation: 13
ok this is fine
$IPT -t nat -A PREROUTING -i $LOCAL_IFACE -p tcp --dport 80 -j REDIRECT --to-port 3128
....
echo "1" > /proc/sys/net/ipv4/ip_forward
.......
$IPT -t mangle -A POSTROUTING -m layer7 --l7proto rtsp -j DROP
#$IPT -t mangle -A POSTROUTING -m layer7 --l7proto shoutcast -j DROP
$IPT -t mangle -A POSTROUTING -m layer7 --l7proto ares -j DROP
$IPT -t mangle -A POSTROUTING -m layer7 --l7proto edonkey -j DROP
....
you have a parched kernel with layer7 ??
you have this ??
 
Old 05-15-2009, 11:08 PM   #18
jibskg
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Original Poster
Rep: Reputation: 0
yes i have patched kernel and that all working fine only problem with squid i have
 
Old 05-17-2009, 02:32 AM   #19
rajesh.bahl
Member
 
Registered: Jan 2007
Posts: 101

Rep: Reputation: 15
Can you just post the folowing:-


1. Whenever squid dies, just check whether it is possible to open any site from the PC on which squid is running ?

2. Get the contents of cache.log immediately in this situation and post here.

3. Restart squid service and once again post the contents of cache.log here for analysis.



rajesh.bahl
 
Old 05-18-2009, 07:24 AM   #20
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
I will repeat myself again (and again):
RESOURCES!!!
Please tell us what your resources are like (*memory, hdd, hardware, os configs, etc) are u running X on your proxy server.

Last edited by chitambira; 05-18-2009 at 09:50 AM.
 
Old 05-18-2009, 08:56 AM   #21
jibskg
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Original Poster
Rep: Reputation: 0
hello sorry for late reply two days was off below i am giving my system config and whn next time squid down i will give the cache result

Fedora Core 8
Kernel 2.6.54.4
Gnome 2.20.3
Memory 2 Gib

Dual Processors : Amd Athlon 64x2 core pro 3800+

Also Runnig with ip route for dual gateway


hard drive
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
470889384 9605252 436978468 3% /
/dev/sda1 194442 28396 156007 16% /boot
tmpfs 1037624 12 1037612 1% /dev/shm

Memory

total used free shared buffers cached
Mem: 2026 914 1112 0 144 525
-/+ buffers/cache: 244 1782
Swap: 1983 0 1983
Total: 4010 914 3096
 
Old 05-19-2009, 08:05 AM   #22
falcom
Member
 
Registered: May 2009
Posts: 102

Rep: Reputation: 13
how many clients do you have?? this for the minimun requeriments of squid ?
after for your total memory use:
Quote:
grep MemTotal /proc/meminfo
and for your CPu's:
Quote:
cat /proc/cpuinfo | grep processor | wc -l

Last edited by falcom; 05-19-2009 at 08:09 AM.
 
Old 05-19-2009, 08:26 AM   #23
jibskg
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Original Poster
Rep: Reputation: 0
i have around 80 to 90 users using squid

grep MemTotal /proc/meminfo : MemTotal: 2075252 kB

cat /proc/cpuinfo | grep processor | wc -l : 2
 
Old 05-19-2009, 09:36 AM   #24
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
Quote:
Memory

total used free shared buffers cached
Mem: 2026 914 1112 0 144 525
-/+ buffers/cache: 244 1782
Swap: 1983 0 1983
Total: 4010 914 3096
Can't you easily see that you are running out of memory, over 80% utilisation. so probably this goes up as more clients connect. Capture these stats when squid stops!
Also during the timne when squid is busted, do a # top and a # ps aux | grep squid
 
Old 05-19-2009, 01:47 PM   #25
jibskg
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Original Poster
Rep: Reputation: 0
total used free shared buffers cached
2026 914 1112 0 144 525
-/+ buffers/cache: 244 1782
Swap: 1983 0 1983
Total: 4010 914 3096


this is how memory status i belive its less than 50 %

Last edited by jibskg; 05-19-2009 at 01:49 PM.
 
Old 05-20-2009, 05:03 AM   #26
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
OK, I had not looked carefully at the formatting of the out (which is hard in this case since its lost when pasted to web page)
Post output of the command I indicated above, when squid goes bust.
 
Old 05-22-2009, 01:45 PM   #27
jibskg
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Original Poster
Rep: Reputation: 0
below is the result of command u have told me

top
3144 admin 20 0 109m 42m 11m S 23 2.1 23:29.40 nautilus
2371 root 20 0 160m 8768 5996 S 0 0.4 0:39.39 X
14653 squid 20 0 121m 118m 2216 S 0 5.8 0:21.53 squid
15007 root 20 0 2272 1032 788 R 0 0.0 0:00.01 top
1 root 20 0 2112 660 572 S 0 0.0 0:01.13 init
2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd
3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0
4 root 15 -5 0 0 0 S 0 0.0 0:01.19 ksoftirqd/0
5 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0
6 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/1
7 root 15 -5 0 0 0 S 0 0.0 0:01.06 ksoftirqd/1
8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1
9 root 15 -5 0 0 0 S 0 0.0 0:15.47 events/0
10 root 15 -5 0 0 0 S 0 0.0 0:02.87 events/1
11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper
64 root 15 -5 0 0 0 S 0 0.0 0:00.02 kblockd/0
65 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1



ps aux | grep squid

root 14651 0.0 0.0 7748 1260 ? Ss 11:52 0:00 squid -D
squid 14653 0.2 5.7 123720 119828 ? S 11:52 0:21 (squid) -D
squid 14656 0.0 0.0 1600 228 ? Ss 11:52 0:00 (unlinkd)
root 15004 0.0 0.0 4048 684 pts/1 S+ 14:26 0:00 grep squid
 
Old 05-28-2009, 06:50 AM   #28
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
was this output taken AT THE TIME SQUID WENT BUST??
also during that time, I want to see, # ps aux | awk '{if ($3>'20') {print $1, $2, $3, $4, $8, $11} }'
 
Old 05-28-2009, 10:23 AM   #29
jibskg
LQ Newbie
 
Registered: Aug 2004
Posts: 18

Original Poster
Rep: Reputation: 0
yes it was when squid bust, ok next time when it bust i will give you that
thanks
 
Old 05-28-2009, 11:16 PM   #30
arisnb
LQ Newbie
 
Registered: Feb 2009
Distribution: debian, mandriva
Posts: 6
Blog Entries: 2

Rep: Reputation: 1
Maybe your acl not use netmask, please change exp :

acl ibin src 192.0.0.32/255.255.255.255

===
emm... please check your log but before check it please restart your squid, then quickly check

#tail -n 15 /var/log/daemon.log
#tail -n 15 /var/log/messages
#tail -n 15 /var/log/syslog
 
  


Reply



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
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 01:16 PM
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
Using ISA Server as Parent Proxy and want to setup Squid as dwonstream proxy tauseef1 Red Hat 1 04-09-2008 01:03 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM

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

All times are GMT -5. The time now is 02:15 PM.

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