Search squid archive

回覆: Re: [squid-users] storeurl_rewrite_program children increases after log rotated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Chris
The script is come from
"http://wiki.squidcache.org/Features/StoreUrlRewrite/RewriteScript";

Do you have same result ?

Thanks 

--- Chris Woodfield <rekoil@xxxxxxxxxxxxx> 說:

> First off, when you run squid -k rotate, squid sends
> EOF to all  
> rewriter children and starts new ones. This is coded
> behavior,  
> although it's a simple patch to disable if you want
> - just remove the  
> calls to redirectShutdown() and redirectInit() from
> the mainRotate()  
> function.
> 
> As far as why the old rewriters aren't dying, make
> sure your rewriter  
> properly exits when it receives an EOF from squid -
> if you're using  
> event loops you'll need to code for this. When I
> first moved my  
> rewriter from a while(<>) loop to a POE event loop,
> I had the same  
> problem, and solved it by adding an ErrorEvent
> handler which called a  
> function containing "exit 0;" to make sure it died
> on EOF.
> 
> HTH,
> 
> -C
> 
> On Feb 26, 2008, at 9:05 PM, Siu Kin LAM wrote:
> 
> > Hi all
> > I have installed the squid2.7 intpo a CentOS
> release
> > 4.5  for evaluation.
> > I have enabled the "storeurl" feature.
> > However, I found the children of
> > "storeurl_rewrite_program" increased after ran
> "squid
> > -k rotate".
> >
> > for example
> > [0225]# ps -ef | grep store_url_rewrite
> > nobody   27759 24942  0 10:18 ?        00:00:00
> > /usr/bin/perl -w
> > /usr/local/squid/etc/store_url_rewrite
> > nobody   27760 24942  0 10:18 ?        00:00:00
> > /usr/bin/perl -w
> > /usr/local/squid/etc/store_url_rewrite
> > nobody   27761 24942  0 10:18 ?        00:00:00
> > /usr/bin/perl -w
> > /usr/local/squid/etc/store_url_rewrite
> > root     27764 27483  0 10:19 pts/0    00:00:00
> grep
> > store_url_rewrite
> >
> > [0225]# /usr/local/squid/sbin/squid -k rotate
> >
> > [0225]# ps -ef | grep store_url_rewrite
> > nobody   27759 24942  0 10:18 ?        00:00:00
> > /usr/bin/perl -w
> > /usr/local/squid/etc/store_url_rewrite
> > nobody   27760 24942  0 10:18 ?        00:00:00
> > /usr/bin/perl -w
> > /usr/local/squid/etc/store_url_rewrite
> > nobody   27761 24942  0 10:18 ?        00:00:00
> > /usr/bin/perl -w
> > /usr/local/squid/etc/store_url_rewrite
> > nobody   27766 24942  0 10:19 ?        00:00:00
> > /usr/bin/perl -w
> > /usr/local/squid/etc/store_url_rewrite
> > nobody   27767 24942  0 10:19 ?        00:00:00
> > /usr/bin/perl -w
> > /usr/local/squid/etc/store_url_rewrite
> > nobody   27768 24942  0 10:19 ?        00:00:00
> > /usr/bin/perl -w
> > /usr/local/squid/etc/store_url_rewrite
> > root     27770 27483  0 10:19 pts/0    00:00:00
> grep
> > store_url_rewrite
> >
> > Does anyone know this ?
> > Thanks
> >
> >
> >
> >
> >      Yahoo! 網上安全攻略,教你如何防範黑客!  
> >
> 請前往http://hk.promo.yahoo.com/security/index.html
> 了解更多。
> >
> 
> 



      Yahoo! 網上安全攻略,教你如何防範黑客! 請前往http://hk.promo.yahoo.com/security/index.html 了解更多。

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux