Author |
|
chu_bun
Joined: 28 Mar 2015 Posts: 4 Location: USA, Houston
|
Posted: Sun 29 Mar '15 20:17 Post subject: Running htcacheclean for the first time |
|
|
We run httpd-2.2.3 on CentOS 5.8 with caching enable. The server has been running for 4 years, but htcacheclean has never been run. The cache folder is about 10GB now (a "du" on the folder takes a very long time to complete). Should we expect any problem when running htcacheclean for a first time such as server slowing or freezing, ...
Furthermore, in case of freezing, if we disable caching and restart the server, do we expect any problems?
We did a few test on our test servers, and everything was fine, but our test servers do not have a large cache folder. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
chu_bun
Joined: 28 Mar 2015 Posts: 4 Location: USA, Houston
|
Posted: Mon 30 Mar '15 17:59 Post subject: |
|
|
The clean up may take some time to complete while the server is using the cache. Is it possible that some conflicts or slowing down can happen? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 01 Apr '15 17:47 Post subject: |
|
|
I'm not aware about conflicts. Slow down. Hm, depends on your hardrive and CPU performance. |
|
Back to top |
|
chu_bun
Joined: 28 Mar 2015 Posts: 4 Location: USA, Houston
|
Posted: Thu 02 Apr '15 18:35 Post subject: |
|
|
Thank you for your responses.
I read from the onlamp.com that it's perfectly safe to delete the cache files with something like
rm -rf /var/www/cache/*
Running htcacheclean cannot be worse than that! Anyway I start the process, and it's still running after 1 hour. Hopefully, everything will be OK. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 02 Apr '15 20:57 Post subject: |
|
|
chu_bun wrote: |
I read from the onlamp.com that it's perfectly safe to delete the cache files with something like
rm -rf /var/www/cache/*
|
As I told you
James Blond wrote: | htcacheclean just deletes the caches files. |
Only difference is that htcacheclean checks the age of each file, that is why it takes longer. |
|
Back to top |
|
chu_bun
Joined: 28 Mar 2015 Posts: 4 Location: USA, Houston
|
Posted: Thu 02 Apr '15 23:09 Post subject: |
|
|
I ran the command with -v (verbose) and it has been running for 3 hours without showing any messages. "top" shows the process consumes Mem and CPU. What the heck is it doing? If the server goes down, so do I. And this really makes me nervous! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sat 04 Apr '15 22:25 Post subject: |
|
|
How was it? |
|
Back to top |
|