Re: [squid-users] cachemgr.cgi - display raw text

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sun, 15 Jul 2007 08:17:50 +0200

sön 2007-07-15 klockan 08:02 +0800 skrev Ming-Ching Tiew:
> >> #!/bin/sh
> >> /mnt/squid/libexec/cachemgr.cgi | sed -e '1,8d'
> >>
> >> Everything works perfectly after this.
> >
> >Odd.. what kind of web server are you using?
>
> I use busybox httpd. Do you mean the extra text is expected
> and it should be handled by the web server ? Then it might
> then be the web server configuration problem.

It's part of the CGI standard.. how CGI programs returns HTTP headers
for the web server to use..

> But I have a bigger problem now. I noticed that after running
> the cachemgr.cgi, I will get this in my cache.log :-
>
> WARNING! Your cache is running out of filedescriptors
>
> If I don't run it, it's fine.

Very very odd. Don't see how cachemgr.cgi could cause this..

unless you have an URL which points back on squid itself.. what do
access.log say?

> I have 1 G RAM, running nothing else important except squid.
> And I allocated 128 M for cache_mem. I also allocated
> a huge cache_dir :-
>
> cache_dir ufs /mnt/squid/var/cache 40000 16 256
>
> Is it that the cache_dir is too big ?

Not related to the above warning..

Regards
Henrik

Received on Sun Jul 15 2007 - 00:18:01 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:03 MDT