Nuno Fernandes <npf-mli...@eurotux.com> writes:

> When the 32000 sub dirs limit is reached, i get the following errors in 
> error_log:
>
> [Tue Jun 09 22:19:23 2009] [error] (2)No such file or directory: disk_cache: 
> rename tempfile to hdrsfile failed: /var/cache/httpd/mod_proxy/aptmpfddU8r -> 
> /var/cache/httpd/mod_proxy/xWP/E9D/HS@/W_G/WD8/oBQ1iaA.header
>
> And lots of temporary files remain in cacherootdir:
>
> # ls aptmp*|wc -l
> 83296

This is probably because mod_disk_cache is failing to create the new
directories once you hit the subdir limit, and looking at the code, it
doesn't check for that failure.  This is a bug and needs to be fixed.
It might be the same as existing bug 43664
(https://issues.apache.org/bugzilla/show_bug.cgi?id=43664).

> I'm using cachedirlevels = 5 so that the tree of directories is deep. But the 
> problem is that all the requests go to a separated directory:

I see the problem.  Maybe if you change CacheDirLength to 2?  There are
only 64 possible characters used in these directory names, so with a dir
length of 2, you can't have more than 4096 subdirectories.

Once this is solved, the first problem should go away.

-- 
Dan Poirier <poir...@pobox.com>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to