Ticket #2 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

/tmp/ea cache dir keeps getting full

Reported by: vip562 Assigned to: somebody
Priority: minor Milestone: 1.0
Component: eAccelerator Version: 0.9.4
Keywords: Cc: unknown@simplemachines.org

Description

My /tmp/ea cache dir keeps getting full.

Is it supposed to do this? If not, is there a fix?

I am on a duel opteron 246 AMD / Centos 4.2 64Bit / Cpanel /eA .94

Thanks

Change History

03/06/06 09:33:20 changed by unknownbrackets

  • cc set to unknown@simplemachines.org.

03/06/06 09:48:10 changed by anonymous

  • type changed from defect to enhancement.

This is something that needs to improve. The problem is that eA just places it's cache files in the cache dir, but it doesn't keep track of them. So even if the original files are removed eA won't remove the cache files. A cronjob like this should handle that problem:

find /tmp/ea -atime 30 | xargs rm -f

An other thing you can do is use shm_only so nothing will be cached, but that's only good when you can fit your whole cache in shared memory.

03/08/06 13:43:04 changed by Christian Stadler

I guess, you meant

find /tmp/ea -atime +30 | xargs rm -f

Which means more than 30 days ago instead of just exactly 30 days ago.

Regards,

Christian Stadler

03/28/06 11:41:04 changed by bart

Right, little typo. Anyway, if you run it every day :D

04/14/06 11:52:08 changed by bart

  • milestone set to 1.0.

05/08/06 16:06:25 changed by bart

  • priority changed from major to minor.

11/12/06 02:48:08 changed by kl

I find tmpwatch in either cron.daily or cron.hourly (for busy servers) does the job quite well.

/usr/sbin/tmpwatch 48 /var/cache/eaccelerator

will clear out entries 48 hours or older bassed on access time.