473,327 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

caching and htcacheclean

Greetings,
I have just started using Apache at our organisation as a proxy server. I have enabled caching using mod_cache / mod_disk_cache which is working well, however the cache has blown out to 20 GB.

I have tried to use htcacheclean, however I can not get the server to restart afterwards. A sample of my httpd.conf is below:-

__________________________________________________ _____________

LoadModule cache_module modules/mod_cache.so

<IfModule mod_cache.c>

LoadModule disk_cache_module modules/mod_disk_cache.so
# If you want to use mod_disk_cache instead of mod_mem_cache,
# uncomment the line above and comment out the LoadModule line below.
<IfModule mod_disk_cache.c>

CacheRoot I:/Proxy/ApacheCache
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
CacheMaxFileSize 128000
CacheMinFileSize 64
CacheDisable http://au1.aconex.com

htcacheclean -n -t -p I:/Proxy/ApacheCache -l 10000M

# switches
# -n Be nice. This causes slower processing in favour of other processes. #htcacheclean will sleep from time to time so that (a) the disk IO will be #delayed and (b) the kernel can schedule other processes in the meantime.
# -t Delete all empty directories.
# -p Path of the root of the cache
# -l Limit size of cache add B for Bytes, K for Kilobytes and M for Megabytes

</IfModule>

__________________________________________________ _____________

I am sure I am missing something. Like a LoadModule or a way to call the htcacheclean, but im not sure what. I have done a fairly extensive search and come up with nothing.

Can anyone set me on the right track on how to sort this out please?

Regards,

Paul.
Feb 18 '08 #1
1 11999
************ I wish to close this question as I have worked out how to make it work... Cheerz.... *************

Greetings,
I have just started using Apache at our organisation as a proxy server. I have enabled caching using mod_cache / mod_disk_cache which is working well, however the cache has blown out to 20 GB.

I have tried to use htcacheclean, however I can not get the server to restart afterwards. A sample of my httpd.conf is below:-

__________________________________________________ _____________

LoadModule cache_module modules/mod_cache.so

<IfModule mod_cache.c>

LoadModule disk_cache_module modules/mod_disk_cache.so
# If you want to use mod_disk_cache instead of mod_mem_cache,
# uncomment the line above and comment out the LoadModule line below.
<IfModule mod_disk_cache.c>

CacheRoot I:/Proxy/ApacheCache
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
CacheMaxFileSize 128000
CacheMinFileSize 64
CacheDisable http://au1.aconex.com

htcacheclean -n -t -p I:/Proxy/ApacheCache -l 10000M

# switches
# -n Be nice. This causes slower processing in favour of other processes. #htcacheclean will sleep from time to time so that (a) the disk IO will be #delayed and (b) the kernel can schedule other processes in the meantime.
# -t Delete all empty directories.
# -p Path of the root of the cache
# -l Limit size of cache add B for Bytes, K for Kilobytes and M for Megabytes

</IfModule>

__________________________________________________ _____________

I am sure I am missing something. Like a LoadModule or a way to call the htcacheclean, but im not sure what. I have done a fairly extensive search and come up with nothing.

Can anyone set me on the right track on how to sort this out please?

Regards,

Paul.
Mar 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: olle | last post by:
Hi folks. I learning asp.net and compare it with traditional asp and Access-developing. The issue is this one: 1/I have this Ms Acceess adp-project application that works fine on my Ms Sql...
1
by: moko | last post by:
I want to know whether 'dataset caching' is at the client end , or the server ? Similarly is an aspx page caching at the server or client ? Are there any 'gotchas' with caching ?
0
by: Troy Simpson | last post by:
Hi, I have a website which is made up of dynamic pages. Each page that's loaded has some code which looks at which template to load amongst other things, which causes the page to take a little...
3
by: Janaka | last post by:
Hi All, I'm having a problem with Page Output caching on a page that contains a DataGrid. Basically the page pulls up some data for sales information from the DB. Some of this has to be...
3
by: DC | last post by:
Hi, (ASP.Net 1.1) is it possible to (programmatically and globally) deactivate page fragment caching? We have only two scenarios, development stage where we want caching off and testing where we...
5
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated),...
2
by: George1776 | last post by:
All, I've recently upgraded our production ASP.NET/C# application from framework 1.1 to 2.0. Since then I've been plagued by out-of-memory errors and problems with the cache object (which may...
0
by: jason | last post by:
hi experts, support.microsoft.com/kb/917072 and http://msdn.microsoft.com/msdnmag/issues/06/07/WebAppFollies/ As pointed out in these articles, users might get session variables belong to...
4
by: Hermann | last post by:
My site is a bit slow showing the main page so I thought caching query result in PHP will improve performace. Then I read MySQL documentation and saw that MySQL does have a caching feature. So......
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.