Too many open files with Proxy Cache ON!

Too many open files with Proxy Cache ON!

Post by Chuck Murck » Fri, 16 May 1997 04:00:00




> Enabling the Cache function of apache 1.2b10 seems to work (and work
> well) for a short period of time, then after several users hit the
> system (via the proxy) the error_log file grows at an alarming rate with
> the following error messages

> [Wed May 14 16:16:23 1997] open:
> /export/home/httpd/proxy///////////////////////
> ////////////////////////////////ime: Too many open files
> [Wed May 14 16:16:23 1997] open:
> /export/home/httpd/proxy///////////////////////
> ////////////////////////////////ime: Too many open files
> [Wed May 14 16:16:23 1997] open:
> /export/home/httpd/proxy///////////////////////
> ////////////////////////////////ime: Too many open files

> I presume this is a bug but I thought I would post this first just
> incase there is some sort of possible configuration error prior to
> logging it with apache.

> Any comments would be appreciated

What operating system are you on? Is the proxy directory writable by the
user the server is running as? You might want to mail the section of
httpd.conf contining your proxy settings.
--
chuck
Chuck Murcko
The Topsail Group, West Chester PA USA

 
 
 

Too many open files with Proxy Cache ON!

Post by Stephen Davi » Fri, 23 May 1997 04:00:00





>> Enabling the Cache function of apache 1.2b10 seems to work (and work
>> well) for a short period of time, then after several users hit the
>> system (via the proxy) the error_log file grows at an alarming rate with
>> the following error messages

>> [Wed May 14 16:16:23 1997] open:
>> /export/home/httpd/proxy///////////////////////
>> ////////////////////////////////ime: Too many open files
>> [Wed May 14 16:16:23 1997] open:
>> /export/home/httpd/proxy///////////////////////
>> ////////////////////////////////ime: Too many open files
>> [Wed May 14 16:16:23 1997] open:
>> /export/home/httpd/proxy///////////////////////
>> ////////////////////////////////ime: Too many open files

>> I presume this is a bug but I thought I would post this first just
>> incase there is some sort of possible configuration error prior to
>> logging it with apache.

>> Any comments would be appreciated

>What operating system are you on? Is the proxy directory writable by the
>user the server is running as? You might want to mail the section of
>httpd.conf contining your proxy settings.
>--
>chuck
>Chuck Murcko
>The Topsail Group, West Chester PA USA


SUN Solaris 2.5.1, the proxy directory access is available to HTTPD
and it writes a multitude of directories and files (it is definitely
functioning as cache, my tests through several non cached web
browsers proved that). It runs for a short while perfectly, as 4 or 5
users hit the proxy with various page requests the proxy log file
starts growing (at an alarming rate with the above message).
Stock Standard Configuration (at least until it works)

ProxyRequests On

CacheRoot /export/home/httpd/proxy
CacheSize 5
CacheGcInterval 4
CacheMaxExpire 24
CacheLastModifiedFactor 0.1
CacheDefaultExpire 1
NoCache no1.co.nz

Stephen Davies

 
 
 

1. Apache Proxy : Too many open files/Cache Size

Hithere,

there've been some postings here about the cache size of apache growing
too big. Now I guess I found a hint why this happens...

While runing the garbage collection, the proxy dumps a lot (!) of:

[Sat Nov  9 14:04:12 1996] open:
/var/spool/apachecache/P/K/v/J9pTPKs3l7rZvTNqWBw: Too many open files

into the error log. Now am I beeing struck by the "/&%**=E7 file-handles
limitation again? Is there a way to limit the number of used
file-handles for the proxy_module?

yes I know there've been allready postings about it, but hasn't
anybody a solution to this? This file-handles problem is coming up again
and again and raising the number of available filehandles in the OS is =

not a good solution as it is just a question of time that it will
strike me/you again - am I wrong here or just stupid?

T
 =

-- =

-------------------------------------------------------------------------=
-------
                            Tomas Pospisek   =


             for more info have a look at "http://www.spin.ch/"
-------------------------------------------------------------------------=
-------

2. nfs tuning

3. Caching proxy server with off-peak cache refresh

4. setenv TEXINPUTS .... ?

5. Apache Proxy -- cache statistics (%full, cache-hit-rate)?

6. Using Java Servlets w/Apache

7. Proxy (Cache-Proxies) Standard?

8. KDE 2 and Slackware 7.1 (Problem?)

9. QUESTION: proxy asking caching proxy

10. can't open cache /etc/ld.so.cache

11. YQ¨ CERN httpd proxy : can't find in cache - goes to another proxy

12. Apache proxy log, how to split to cache & proxy?

13. Unable to open DNS cache file